By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 2693
Collapse All | Expand All

(-)a/examples2/aclock.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
def TQMIN(x, y):
18
def TQMIN(x, y):
(-)a/examples2/addressbook.py (-1 / +12 lines)
Lines 2-9 Link Here
2
2
3
# A port to PyTQt of the application example from TQt v2.x.
3
# A port to PyTQt of the application example from TQt v2.x.
4
4
5
# Trinity-specific paths
6
import sys, os, string
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
5
17
6
import sys, string
7
from qt import *
18
from qt import *
8
19
9
TRUE  = 1
20
TRUE  = 1
(-)a/examples2/application.py (-5 / +16 lines)
Lines 2-9 Link Here
2
2
3
# A simple application.
3
# A simple application.
4
4
5
# Trinity-specific paths
6
import sys, os, string
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
5
17
6
import sys, string
7
from qt import *
18
from qt import *
8
19
9
20
Lines 104-116 class ApplicationWindow(TQMainWindow): Link Here
104
        self.fileTools = TQToolBar(self,'file operations')
115
        self.fileTools = TQToolBar(self,'file operations')
105
116
106
        openIcon = TQPixmap(fileopen)
117
        openIcon = TQPixmap(fileopen)
107
        self.fileOpen = TQToolButton(openIcon,'Open File',TQString.null,self.load,self.fileTools,'open file')
118
        self.fileOpen = TQToolButton(TQIconSet(openIcon),'Open File',TQString.null,self.load,self.fileTools,'open file')
108
119
109
        saveIcon = TQPixmap(filesave)
120
        saveIcon = TQPixmap(filesave)
110
        self.fileSave = TQToolButton(saveIcon,'Save File',TQString.null,self.save,self.fileTools,'save file')
121
        self.fileSave = TQToolButton(TQIconSet(saveIcon),'Save File',TQString.null,self.save,self.fileTools,'save file')
111
	      
122
112
        printIcon = TQPixmap(fileprint)
123
        printIcon = TQPixmap(fileprint)
113
        self.filePrint = TQToolButton(printIcon,'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
124
        self.filePrint = TQToolButton(TQIconSet(printIcon),'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
114
125
115
        TQWhatsThis.whatsThisButton(self.fileTools)
126
        TQWhatsThis.whatsThisButton(self.fileTools)
116
127
(-)a/examples2/buttongroups.py (-1 / +13 lines)
Lines 9-15 Link Here
9
#**
9
#**
10
#*****************************************************************************/
10
#*****************************************************************************/
11
11
12
import sys
12
# Trinity-specific paths
13
import sys, os
14
tqt_modules = []
15
for m_path in sys.path:
16
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
17
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
18
        tqt_modules.insert(0, m_sip_dir)
19
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
20
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
21
        tqt_modules.insert(0, m_pyqt_dir)
22
for m_path in tqt_modules:
23
    sys.path.insert(0, m_path)
24
13
from qt import *
25
from qt import *
14
26
15
TRUE  = 1
27
TRUE  = 1
(-)a/examples2/dclock.py (-1 / +13 lines)
Lines 3-9 Link Here
3
# A port to PyTQt of the dclock example from TQt v2.x.
3
# A port to PyTQt of the dclock example from TQt v2.x.
4
4
5
5
6
import sys, string
6
# Trinity-specific paths
7
import sys, os, string
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
18
7
from qt import *
19
from qt import *
8
20
9
21
(-)a/examples2/desktop.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
seed = 0.353535353535
18
seed = 0.353535353535
(-)a/examples2/dirview.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
class Directory(TQListViewItem):
18
class Directory(TQListViewItem):
(-)a/examples2/dragdrop.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
3
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
import dropsite, secret
20
import dropsite, secret
(-)a/examples2/dropsite.py (+13 lines)
Lines 1-6 Link Here
1
# This is part of the dragdrop example.
1
# This is part of the dragdrop example.
2
2
3
3
4
# Trinity-specific paths
5
import sys, os
6
tqt_modules = []
7
for m_path in sys.path:
8
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
9
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
10
        tqt_modules.insert(0, m_sip_dir)
11
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
12
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
13
        tqt_modules.insert(0, m_pyqt_dir)
14
for m_path in tqt_modules:
15
    sys.path.insert(0, m_path)
16
4
from qt import *
17
from qt import *
5
18
6
import secret
19
import secret
(-)a/examples2/gears.py (+14 lines)
Lines 3-8 Link Here
3
3
4
import sys
4
import sys
5
import math
5
import math
6
7
# Trinity-specific paths
8
import os
9
tqt_modules = []
10
for m_path in sys.path:
11
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
12
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
13
        tqt_modules.insert(0, m_sip_dir)
14
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
15
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
16
        tqt_modules.insert(0, m_pyqt_dir)
17
for m_path in tqt_modules:
18
    sys.path.insert(0, m_path)
19
6
from qt import *
20
from qt import *
7
from qtgl import *
21
from qtgl import *
8
from OpenGL.GL import *
22
from OpenGL.GL import *
(-)a/examples2/menu.py (-1 / +13 lines)
Lines 10-16 Link Here
10
#**
10
#**
11
#*****************************************************************************/
11
#*****************************************************************************/
12
12
13
import sys, string
13
# Trinity-specific paths
14
import sys, os, string
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
TRUE  = 1
28
TRUE  = 1
(-)a/examples2/secret.py (+13 lines)
Lines 1-6 Link Here
1
# This is part of the dragdrop example.
1
# This is part of the dragdrop example.
2
2
3
3
4
# Trinity-specific paths
5
import sys, os
6
tqt_modules = []
7
for m_path in sys.path:
8
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
9
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
10
        tqt_modules.insert(0, m_sip_dir)
11
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
12
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
13
        tqt_modules.insert(0, m_pyqt_dir)
14
for m_path in tqt_modules:
15
    sys.path.insert(0, m_path)
16
4
from qt import *
17
from qt import *
5
18
6
19
(-)a/examples2/semaphore.py (-1 / +12 lines)
Lines 3-9 Link Here
3
# A port of the semaphore example from TQt.
3
# A port of the semaphore example from TQt.
4
4
5
5
6
import sys
6
# Trinity-specific paths
7
import sys, os
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
7
18
8
# Check if thread support was enabled.
19
# Check if thread support was enabled.
9
try:
20
try:
(-)a/examples2/splitter.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
class Test(TQWidget):
18
class Test(TQWidget):
(-)a/examples2/table.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
class Table(TQTableView):
18
class Table(TQTableView):
(-)a/examples2/themes.py (-1 / +12 lines)
Lines 9-15 TRUE=1 Link Here
9
9
10
# Python modules
10
# Python modules
11
11
12
import os, sys
12
# Trinity-specific paths
13
import sys, os
14
tqt_modules = []
15
for m_path in sys.path:
16
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
17
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
18
        tqt_modules.insert(0, m_sip_dir)
19
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
20
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
21
        tqt_modules.insert(0, m_pyqt_dir)
22
for m_path in tqt_modules:
23
    sys.path.insert(0, m_path)
13
24
14
# include files for QT
25
# include files for QT
15
26
(-)a/examples2/tut1.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 1.
3
# TQt tutorial 1.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut10.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 10.
3
# TQt tutorial 10.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut11.py (+14 lines)
Lines 4-9 Link Here
4
4
5
import sys
5
import sys
6
import math
6
import math
7
8
# Trinity-specific paths
9
import os
10
tqt_modules = []
11
for m_path in sys.path:
12
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
13
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
14
        tqt_modules.insert(0, m_sip_dir)
15
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
16
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
17
        tqt_modules.insert(0, m_pyqt_dir)
18
for m_path in tqt_modules:
19
    sys.path.insert(0, m_path)
20
7
from qt import *
21
from qt import *
8
22
9
23
(-)a/examples2/tut12.py (+14 lines)
Lines 5-10 Link Here
5
import sys
5
import sys
6
import math
6
import math
7
import random
7
import random
8
9
# Trinity-specific paths
10
import os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
8
from qt import *
22
from qt import *
9
23
10
24
(-)a/examples2/tut13.py (+14 lines)
Lines 5-10 Link Here
5
import sys
5
import sys
6
import math
6
import math
7
import random
7
import random
8
9
# Trinity-specific paths
10
import os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
8
from qt import *
22
from qt import *
9
23
10
24
(-)a/examples2/tut14.py (+14 lines)
Lines 5-10 Link Here
5
import sys
5
import sys
6
import math
6
import math
7
import random
7
import random
8
9
# Trinity-specific paths
10
import os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
8
from qt import *
22
from qt import *
9
23
10
24
(-)a/examples2/tut2.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 2.
3
# TQt tutorial 2.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut3.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 3.
3
# TQt tutorial 3.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
a = TQApplication(sys.argv)
20
a = TQApplication(sys.argv)
(-)a/examples2/tut4.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 4.
3
# TQt tutorial 4.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut5.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 5.
3
# TQt tutorial 5.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut6.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 6.
3
# TQt tutorial 6.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut7.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 7.
3
# TQt tutorial 7.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut8.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 8.
3
# TQt tutorial 8.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/tut9.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 9.
3
# TQt tutorial 9.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
20
(-)a/examples2/widgets.py (-1 / +13 lines)
Lines 1-7 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
3
4
import sys, string
4
# Trinity-specific paths
5
import sys, os, string
6
tqt_modules = []
7
for m_path in sys.path:
8
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
9
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
10
        tqt_modules.insert(0, m_sip_dir)
11
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
12
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
13
        tqt_modules.insert(0, m_pyqt_dir)
14
for m_path in tqt_modules:
15
    sys.path.insert(0, m_path)
16
5
from qt import *
17
from qt import *
6
18
7
#
19
#
(-)a/examples3/SQL/dbconnect.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
from qtsql import *
17
from qtsql import *
6
18
(-)a/examples3/SQL/frmconnect.py (+13 lines)
Lines 6-11 Link Here
6
# WARNING! All changes made in this file will be lost!
6
# WARNING! All changes made in this file will be lost!
7
7
8
8
9
# Trinity-specific paths
10
import sys, os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
9
from qt import *
22
from qt import *
10
23
11
24
(-)a/examples3/SQL/runform1.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
from form1 import Form1
18
from form1 import Form1
(-)a/examples3/SQL/runform2.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
from form2 import Form2
18
from form2 import Form2
(-)a/examples3/SQL/runsqlex.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
from qtsql import *
17
from qtsql import *
6
18
(-)a/examples3/SQL/sqlcustom1.py (-1 / +13 lines)
Lines 10-16 Link Here
10
#**
10
#**
11
#*****************************************************************************/
11
#*****************************************************************************/
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
from qtsql import *
27
from qtsql import *
16
28
(-)a/examples3/SQL/sqlsubclass5.py (-1 / +13 lines)
Lines 10-16 Link Here
10
#**
10
#**
11
#*****************************************************************************/
11
#*****************************************************************************/
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
from qtsql import *
27
from qtsql import *
16
28
(-)a/examples3/SQL/sqltable4.py (-1 / +13 lines)
Lines 10-16 Link Here
10
#**
10
#**
11
#*****************************************************************************/
11
#*****************************************************************************/
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
from qtsql import *
27
from qtsql import *
16
28
(-)a/examples3/aclock.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
def TQMIN(x, y):
18
def TQMIN(x, y):
(-)a/examples3/addressbook.py (-1 / +13 lines)
Lines 3-9 Link Here
3
# A port to PyTQt of the application example from TQt v2.x.
3
# A port to PyTQt of the application example from TQt v2.x.
4
4
5
5
6
import sys, string
6
# Trinity-specific paths
7
import sys, os, string
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
18
7
from qt import *
19
from qt import *
8
20
9
TRUE  = 1
21
TRUE  = 1
(-)a/examples3/application.py (-1 / +13 lines)
Lines 3-9 Link Here
3
# A simple application.
3
# A simple application.
4
4
5
5
6
import sys, string
6
# Trinity-specific paths
7
import sys, os, string
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
18
7
from qt import *
19
from qt import *
8
20
9
21
(-)a/examples3/biff.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import os, sys, string
3
# Trinity-specific paths
4
import sys, os, string
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
18
(-)a/examples3/bigtable.py (+13 lines)
Lines 12-17 Link Here
12
12
13
import sys
13
import sys
14
import os
14
import os
15
16
# Trinity-specific paths
17
tqt_modules = []
18
for m_path in sys.path:
19
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
20
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
21
        tqt_modules.insert(0, m_sip_dir)
22
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
23
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
24
        tqt_modules.insert(0, m_pyqt_dir)
25
for m_path in tqt_modules:
26
    sys.path.insert(0, m_path)
27
15
from qt import *
28
from qt import *
16
from qttable import *
29
from qttable import *
17
30
(-)a/examples3/buttongroups.py (-1 / +13 lines)
Lines 9-15 Link Here
9
#**
9
#**
10
#*****************************************************************************/
10
#*****************************************************************************/
11
11
12
import sys
12
# Trinity-specific paths
13
import sys, os
14
tqt_modules = []
15
for m_path in sys.path:
16
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
17
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
18
        tqt_modules.insert(0, m_sip_dir)
19
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
20
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
21
        tqt_modules.insert(0, m_pyqt_dir)
22
for m_path in tqt_modules:
23
    sys.path.insert(0, m_path)
24
13
from qt import *
25
from qt import *
14
26
15
TRUE  = 1
27
TRUE  = 1
(-)a/examples3/canvas/canvas.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
from qtcanvas import *
17
from qtcanvas import *
6
import random
18
import random
(-)a/examples3/checklists.py (-1 / +13 lines)
Lines 3-9 Link Here
3
# vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
3
# vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
4
# Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) <yshurik@thekompany.com>
4
# Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) <yshurik@thekompany.com>
5
5
6
import sys 
6
# Trinity-specific paths
7
import sys, os
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
18
7
from qt import *
19
from qt import *
8
20
9
TRUE = 1
21
TRUE = 1
(-)a/examples3/cursor.py (-1 / +13 lines)
Lines 9-15 Link Here
9
**
9
**
10
***************************************************************************"""
10
***************************************************************************"""
11
11
12
import sys
12
# Trinity-specific paths
13
import sys, os
14
tqt_modules = []
15
for m_path in sys.path:
16
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
17
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
18
        tqt_modules.insert(0, m_sip_dir)
19
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
20
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
21
        tqt_modules.insert(0, m_pyqt_dir)
22
for m_path in tqt_modules:
23
    sys.path.insert(0, m_path)
24
13
from qt import *
25
from qt import *
14
26
15
# cb_bits and cm_bits were generated by X bitmap program.
27
# cb_bits and cm_bits were generated by X bitmap program.
(-)a/examples3/dclock.py (-1 / +13 lines)
Lines 3-9 Link Here
3
# A port to PyTQt of the dclock example from TQt v2.x.
3
# A port to PyTQt of the dclock example from TQt v2.x.
4
4
5
5
6
import sys, string
6
# Trinity-specific paths
7
import sys, os, string
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
18
7
from qt import *
19
from qt import *
8
20
9
21
(-)a/examples3/desktop.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
seed = 0.353535353535
18
seed = 0.353535353535
(-)a/examples3/dirview.py (-1 / +13 lines)
Lines 11-17 Link Here
11
**
11
**
12
***************************************************************************"""
12
***************************************************************************"""
13
13
14
import sys
14
# Trinity-specific paths
15
import sys, os
16
tqt_modules = []
17
for m_path in sys.path:
18
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
19
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
20
        tqt_modules.insert(0, m_sip_dir)
21
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
22
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
23
        tqt_modules.insert(0, m_pyqt_dir)
24
for m_path in tqt_modules:
25
    sys.path.insert(0, m_path)
26
15
from qt import *
27
from qt import *
16
28
17
folder_closed_xpm = [
29
folder_closed_xpm = [
(-)a/examples3/dragdrop.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
3
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
from qt import *
18
from qt import *
7
19
8
import dropsite, secret
20
import dropsite, secret
(-)a/examples3/drawlines.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys, random
3
# Trinity-specific paths
4
import sys, os, random
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
TRUE = 1
18
TRUE = 1
(-)a/examples3/dropsite.py (+13 lines)
Lines 1-6 Link Here
1
# This is part of the dragdrop example.
1
# This is part of the dragdrop example.
2
2
3
3
4
# Trinity-specific paths
5
import sys, os
6
tqt_modules = []
7
for m_path in sys.path:
8
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
9
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
10
        tqt_modules.insert(0, m_sip_dir)
11
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
12
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
13
        tqt_modules.insert(0, m_pyqt_dir)
14
for m_path in tqt_modules:
15
    sys.path.insert(0, m_path)
16
4
from qt import *
17
from qt import *
5
18
6
import secret
19
import secret
(-)a/examples3/fontdisplayer.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
class FontRowTable( TQFrame ):
28
class FontRowTable( TQFrame ):
(-)a/examples3/fonts.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
class Viewer( TQWidget ):
28
class Viewer( TQWidget ):
(-)a/examples3/gears.py (+14 lines)
Lines 3-8 Link Here
3
3
4
import sys
4
import sys
5
import math
5
import math
6
7
# Trinity-specific paths
8
import os
9
tqt_modules = []
10
for m_path in sys.path:
11
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
12
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
13
        tqt_modules.insert(0, m_sip_dir)
14
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
15
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
16
        tqt_modules.insert(0, m_pyqt_dir)
17
for m_path in tqt_modules:
18
    sys.path.insert(0, m_path)
19
6
from qt import *
20
from qt import *
7
from qtgl import *
21
from qtgl import *
8
from OpenGL.GL import *
22
from OpenGL.GL import *
(-)a/examples3/i18n/i18n.py (-1 / +13 lines)
Lines 3-9 Link Here
3
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
3
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
4
4
5
from whrandom import randint
5
from whrandom import randint
6
import sys
6
7
# Trinity-specific paths
8
import sys, os
9
tqt_modules = []
10
for m_path in sys.path:
11
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
12
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
13
        tqt_modules.insert(0, m_sip_dir)
14
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
15
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
16
        tqt_modules.insert(0, m_pyqt_dir)
17
for m_path in tqt_modules:
18
    sys.path.insert(0, m_path)
7
19
8
from qt import *
20
from qt import *
9
21
(-)a/examples3/i18n/mywidget.py (+13 lines)
Lines 1-5 Link Here
1
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
1
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
2
2
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
3
from qt import *
16
from qt import *
4
17
5
class MyWidget(TQMainWindow):
18
class MyWidget(TQMainWindow):
(-)a/examples3/lineedits.py (-1 / +13 lines)
Lines 10-16 Link Here
10
#**
10
#**
11
#*****************************************************************************/
11
#*****************************************************************************/
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
TRUE  = 1
28
TRUE  = 1
(-)a/examples3/listbox.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
FALSE = 0
28
FALSE = 0
(-)a/examples3/listboxcombo.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
FALSE = 0
28
FALSE = 0
(-)a/examples3/mdi.py (-1 / +13 lines)
Lines 3-9 Link Here
3
# A simple application.
3
# A simple application.
4
4
5
5
6
import sys, string
6
# Trinity-specific paths
7
import sys, os, string
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
18
7
from qt import *
19
from qt import *
8
20
9
21
(-)a/examples3/menu.py (-1 / +13 lines)
Lines 10-16 Link Here
10
#**
10
#**
11
#*****************************************************************************/
11
#*****************************************************************************/
12
12
13
import sys, string
13
# Trinity-specific paths
14
import sys, os, string
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
TRUE  = 1
28
TRUE  = 1
(-)a/examples3/progress.py (-1 / +13 lines)
Lines 12-18 Link Here
12
#** 
12
#** 
13
#*****************************************************************************/
13
#*****************************************************************************/
14
14
15
import sys
15
# Trinity-specific paths
16
import sys, os
17
tqt_modules = []
18
for m_path in sys.path:
19
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
20
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
21
        tqt_modules.insert(0, m_sip_dir)
22
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
23
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
24
        tqt_modules.insert(0, m_pyqt_dir)
25
for m_path in tqt_modules:
26
    sys.path.insert(0, m_path)
27
16
from qt import *
28
from qt import *
17
from random import randint
29
from random import randint
18
30
(-)a/examples3/progressbar.py (-1 / +13 lines)
Lines 11-17 Link Here
11
**************************************************************************"""
11
**************************************************************************"""
12
12
13
#import pdb
13
#import pdb
14
import sys
14
# Trinity-specific paths
15
import sys, os
16
tqt_modules = []
17
for m_path in sys.path:
18
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
19
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
20
        tqt_modules.insert(0, m_sip_dir)
21
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
22
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
23
        tqt_modules.insert(0, m_pyqt_dir)
24
for m_path in tqt_modules:
25
    sys.path.insert(0, m_path)
26
15
from qt import *
27
from qt import *
16
28
17
FALSE = 0
29
FALSE = 0
(-)a/examples3/qdir.py (+14 lines)
Lines 4-9 Link Here
4
4
5
import os
5
import os
6
import pickle
6
import pickle
7
8
# Trinity-specific paths
9
import sys
10
tqt_modules = []
11
for m_path in sys.path:
12
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
13
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
14
        tqt_modules.insert(0, m_sip_dir)
15
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
16
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
17
        tqt_modules.insert(0, m_pyqt_dir)
18
for m_path in tqt_modules:
19
    sys.path.insert(0, m_path)
20
7
from qt import *
21
from qt import *
8
from dirview import Directory, DirectoryView
22
from dirview import Directory, DirectoryView
9
23
(-)a/examples3/qmag.py (-1 / +13 lines)
Lines 10-16 Link Here
10
#**
10
#**
11
#*****************************************************************************/
11
#*****************************************************************************/
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
TRUE  = 1
28
TRUE  = 1
(-)a/examples3/rangecontrols.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
INT_MAX = sys.maxint
28
INT_MAX = sys.maxint
(-)a/examples3/richtext.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
sayings = [
28
sayings = [
(-)a/examples3/secret.py (+13 lines)
Lines 1-6 Link Here
1
# This is part of the dragdrop example.
1
# This is part of the dragdrop example.
2
2
3
3
4
# Trinity-specific paths
5
import sys, os
6
tqt_modules = []
7
for m_path in sys.path:
8
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
9
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
10
        tqt_modules.insert(0, m_sip_dir)
11
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
12
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
13
        tqt_modules.insert(0, m_pyqt_dir)
14
for m_path in tqt_modules:
15
    sys.path.insert(0, m_path)
16
4
from qt import *
17
from qt import *
5
18
6
19
(-)a/examples3/semaphore.py (-1 / +12 lines)
Lines 3-9 Link Here
3
# A port of the semaphore example from TQt.
3
# A port of the semaphore example from TQt.
4
4
5
5
6
import sys
6
# Trinity-specific paths
7
import sys, os
8
tqt_modules = []
9
for m_path in sys.path:
10
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
11
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
12
        tqt_modules.insert(0, m_sip_dir)
13
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
14
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
15
        tqt_modules.insert(0, m_pyqt_dir)
16
for m_path in tqt_modules:
17
    sys.path.insert(0, m_path)
7
18
8
# Check if thread support was enabled.
19
# Check if thread support was enabled.
9
try:
20
try:
(-)a/examples3/smalltable.py (+13 lines)
Lines 12-17 Link Here
12
12
13
import sys
13
import sys
14
import os
14
import os
15
16
# Trinity-specific paths
17
tqt_modules = []
18
for m_path in sys.path:
19
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
20
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
21
        tqt_modules.insert(0, m_sip_dir)
22
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
23
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
24
        tqt_modules.insert(0, m_pyqt_dir)
25
for m_path in tqt_modules:
26
    sys.path.insert(0, m_path)
27
15
from qt import *
28
from qt import *
16
from qttable import *
29
from qttable import *
17
30
(-)a/examples3/splitter.py (-1 / +13 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
import sys
3
# Trinity-specific paths
4
import sys, os
5
tqt_modules = []
6
for m_path in sys.path:
7
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
8
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
9
        tqt_modules.insert(0, m_sip_dir)
10
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
11
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
12
        tqt_modules.insert(0, m_pyqt_dir)
13
for m_path in tqt_modules:
14
    sys.path.insert(0, m_path)
15
4
from qt import *
16
from qt import *
5
17
6
class Test(TQWidget):
18
class Test(TQWidget):
(-)a/examples3/tabdialog.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
27
16
class TabDialog( TQTabDialog ):
28
class TabDialog( TQTabDialog ):
(-)a/examples3/tablestatistics.py (+13 lines)
Lines 12-17 Link Here
12
12
13
import sys
13
import sys
14
import os
14
import os
15
16
# Trinity-specific paths
17
tqt_modules = []
18
for m_path in sys.path:
19
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
20
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
21
        tqt_modules.insert(0, m_sip_dir)
22
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
23
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
24
        tqt_modules.insert(0, m_pyqt_dir)
25
for m_path in tqt_modules:
26
    sys.path.insert(0, m_path)
27
15
from qt import *
28
from qt import *
16
from qttable import *
29
from qttable import *
17
30
(-)a/examples3/tooltip.py (-1 / +13 lines)
Lines 10-16 Link Here
10
**
10
**
11
***************************************************************************"""
11
***************************************************************************"""
12
12
13
import sys
13
# Trinity-specific paths
14
import sys, os
15
tqt_modules = []
16
for m_path in sys.path:
17
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
18
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
19
        tqt_modules.insert(0, m_sip_dir)
20
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
21
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
22
        tqt_modules.insert(0, m_pyqt_dir)
23
for m_path in tqt_modules:
24
    sys.path.insert(0, m_path)
25
14
from qt import *
26
from qt import *
15
from random import random
27
from random import random
16
28
(-)a/examples3/tut1.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 1.
3
# TQt tutorial 1.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
(-)a/examples3/tut10.py (-2 / +14 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 10.
3
# TQt tutorial 10.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
Lines 101-107 class MyWidget(qt.TQWidget): Link Here
101
113
102
        quit = qt.TQPushButton("&Quit", self, "quit")
114
        quit = qt.TQPushButton("&Quit", self, "quit")
103
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
115
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
104
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
116
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
105
117
106
        self.angle = LCDRange(self, "angle")
118
        self.angle = LCDRange(self, "angle")
107
        self.angle.setRange(5, 70)
119
        self.angle.setRange(5, 70)
(-)a/examples3/tut11.py (-1 / +15 lines)
Lines 4-9 Link Here
4
4
5
import sys
5
import sys
6
import math
6
import math
7
8
# Trinity-specific paths
9
import os
10
tqt_modules = []
11
for m_path in sys.path:
12
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
13
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
14
        tqt_modules.insert(0, m_sip_dir)
15
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
16
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
17
        tqt_modules.insert(0, m_pyqt_dir)
18
for m_path in tqt_modules:
19
    sys.path.insert(0, m_path)
20
7
import qt
21
import qt
8
22
9
23
Lines 162-168 class MyWidget(qt.TQWidget): Link Here
162
176
163
        quit = qt.TQPushButton("&Quit", self, "quit")
177
        quit = qt.TQPushButton("&Quit", self, "quit")
164
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
178
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
165
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
179
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
166
180
167
        self.angle = LCDRange(self, "angle")
181
        self.angle = LCDRange(self, "angle")
168
        self.angle.setRange(5, 70)
182
        self.angle.setRange(5, 70)
(-)a/examples3/tut12.py (-1 / +15 lines)
Lines 5-10 Link Here
5
import sys
5
import sys
6
import math
6
import math
7
import random
7
import random
8
9
# Trinity-specific paths
10
import os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
8
import qt
22
import qt
9
23
10
24
Lines 202-208 class MyWidget(qt.TQWidget): Link Here
202
216
203
        quit = qt.TQPushButton("&Quit", self, "quit")
217
        quit = qt.TQPushButton("&Quit", self, "quit")
204
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
218
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
205
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
219
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
206
220
207
        self.angle = LCDRange("ANGLE", self, "angle")
221
        self.angle = LCDRange("ANGLE", self, "angle")
208
        self.angle.setRange(5, 70)
222
        self.angle.setRange(5, 70)
(-)a/examples3/tut13.py (-1 / +15 lines)
Lines 5-10 Link Here
5
import sys
5
import sys
6
import math
6
import math
7
import random
7
import random
8
9
# Trinity-specific paths
10
import os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
8
import qt
22
import qt
9
23
10
24
Lines 237-243 class GameBoard(qt.TQWidget): Link Here
237
251
238
        quit = qt.TQPushButton("&Quit", self, "quit")
252
        quit = qt.TQPushButton("&Quit", self, "quit")
239
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
253
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
240
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
254
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
241
255
242
        self.angle = LCDRange("ANGLE", self, "angle")
256
        self.angle = LCDRange("ANGLE", self, "angle")
243
        self.angle.setRange(5, 70)
257
        self.angle.setRange(5, 70)
(-)a/examples3/tut14.py (-2 / +16 lines)
Lines 5-10 Link Here
5
import sys
5
import sys
6
import math
6
import math
7
import random
7
import random
8
9
# Trinity-specific paths
10
import os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
8
import qt
22
import qt
9
23
10
24
Lines 277-283 class GameBoard(qt.TQWidget): Link Here
277
291
278
        quit = qt.TQPushButton("&Quit", self, "quit")
292
        quit = qt.TQPushButton("&Quit", self, "quit")
279
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
293
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
280
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
294
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
281
295
282
        self.angle = LCDRange("ANGLE", self, "angle")
296
        self.angle = LCDRange("ANGLE", self, "angle")
283
        self.angle.setRange(5, 70)
297
        self.angle.setRange(5, 70)
Lines 316-322 class GameBoard(qt.TQWidget): Link Here
316
        accel = qt.TQAccel(self)
330
        accel = qt.TQAccel(self)
317
        accel.connectItem(accel.insertItem(qt.TQt.Key_Enter), self.fire)
331
        accel.connectItem(accel.insertItem(qt.TQt.Key_Enter), self.fire)
318
        accel.connectItem(accel.insertItem(qt.TQt.Key_Return), self.fire)
332
        accel.connectItem(accel.insertItem(qt.TQt.Key_Return), self.fire)
319
        accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.qApp, qt.SLOT("quit()"))
333
        accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.tqApp, qt.SLOT("quit()"))
320
334
321
        grid = qt.TQGridLayout(self, 2, 2, 10)
335
        grid = qt.TQGridLayout(self, 2, 2, 10)
322
        grid.addWidget(quit, 0, 0)
336
        grid.addWidget(quit, 0, 0)
(-)a/examples3/tut2.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 2.
3
# TQt tutorial 2.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
(-)a/examples3/tut3.py (-1 / +13 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 3.
3
# TQt tutorial 3.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
(-)a/examples3/tut4.py (-2 / +14 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 4.
3
# TQt tutorial 4.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
Lines 17-23 class MyWidget(qt.TQWidget): Link Here
17
        quit.setGeometry(62, 40, 75, 30)
29
        quit.setGeometry(62, 40, 75, 30)
18
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
30
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
19
31
20
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
32
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
21
33
22
34
23
a = qt.TQApplication(sys.argv)
35
a = qt.TQApplication(sys.argv)
(-)a/examples3/tut5.py (-2 / +14 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 5.
3
# TQt tutorial 5.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
Lines 13-19 class MyWidget(qt.TQVBox): Link Here
13
        quit = qt.TQPushButton("Quit", self, "quit")
25
        quit = qt.TQPushButton("Quit", self, "quit")
14
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
26
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
15
27
16
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
28
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
17
29
18
        lcd = qt.TQLCDNumber(2, self, "lcd")
30
        lcd = qt.TQLCDNumber(2, self, "lcd")
19
31
(-)a/examples3/tut6.py (-2 / +14 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 6.
3
# TQt tutorial 6.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
Lines 24-30 class MyWidget(qt.TQVBox): Link Here
24
        quit = qt.TQPushButton("Quit", self, "quit")
36
        quit = qt.TQPushButton("Quit", self, "quit")
25
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
37
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
26
38
27
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
39
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
28
40
29
        grid = qt.TQGrid(4, self)
41
        grid = qt.TQGrid(4, self)
30
42
(-)a/examples3/tut7.py (-2 / +14 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 7.
3
# TQt tutorial 7.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
Lines 31-37 class MyWidget(qt.TQVBox): Link Here
31
        quit = qt.TQPushButton("Quit", self, "quit")
43
        quit = qt.TQPushButton("Quit", self, "quit")
32
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
44
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
33
45
34
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
46
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
35
47
36
        grid = qt.TQGrid(4, self)
48
        grid = qt.TQGrid(4, self)
37
49
(-)a/examples3/tut8.py (-2 / +14 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 8.
3
# TQt tutorial 8.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
Lines 67-73 class MyWidget(qt.TQWidget): Link Here
67
79
68
        quit = qt.TQPushButton("Quit", self, "quit")
80
        quit = qt.TQPushButton("Quit", self, "quit")
69
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
81
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
70
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
82
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
71
83
72
        self.angle = LCDRange(self, "angle")
84
        self.angle = LCDRange(self, "angle")
73
        self.angle.setRange(5, 70)
85
        self.angle.setRange(5, 70)
(-)a/examples3/tut9.py (-2 / +14 lines)
Lines 2-8 Link Here
2
2
3
# TQt tutorial 9.
3
# TQt tutorial 9.
4
4
5
import sys
5
# Trinity-specific paths
6
import sys, os
7
tqt_modules = []
8
for m_path in sys.path:
9
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
10
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
11
        tqt_modules.insert(0, m_sip_dir)
12
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
13
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
14
        tqt_modules.insert(0, m_pyqt_dir)
15
for m_path in tqt_modules:
16
    sys.path.insert(0, m_path)
17
6
import qt
18
import qt
7
19
8
20
Lines 73-79 class MyWidget(qt.TQWidget): Link Here
73
85
74
        quit = qt.TQPushButton("&Quit", self, "quit")
86
        quit = qt.TQPushButton("&Quit", self, "quit")
75
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
87
        quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
76
        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
88
        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
77
89
78
        self.angle = LCDRange(self, "angle")
90
        self.angle = LCDRange(self, "angle")
79
        self.angle.setRange(5, 70)
91
        self.angle.setRange(5, 70)
(-)a/examples3/webbrowser/mainwindow.py (+13 lines)
Lines 8-13 Link Here
8
# WARNING! All changes made in this file will be lost!
8
# WARNING! All changes made in this file will be lost!
9
9
10
10
11
# Trinity-specific paths
12
import sys, os
13
tqt_modules = []
14
for m_path in sys.path:
15
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
16
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
17
        tqt_modules.insert(0, m_sip_dir)
18
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
19
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
20
        tqt_modules.insert(0, m_pyqt_dir)
21
for m_path in tqt_modules:
22
    sys.path.insert(0, m_path)
23
11
from qt import *
24
from qt import *
12
from qtaxcontainer import TQAxWidget
25
from qtaxcontainer import TQAxWidget
13
26
(-)a/examples3/webbrowser/webbrowser.py (-1 / +13 lines)
Lines 6-12 Link Here
6
# limitation.
6
# limitation.
7
7
8
8
9
import sys
9
# Trinity-specific paths
10
import sys, os
11
tqt_modules = []
12
for m_path in sys.path:
13
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
14
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
15
        tqt_modules.insert(0, m_sip_dir)
16
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
17
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
18
        tqt_modules.insert(0, m_pyqt_dir)
19
for m_path in tqt_modules:
20
    sys.path.insert(0, m_path)
21
10
import qt
22
import qt
11
import qtaxcontainer
23
import qtaxcontainer
12
24
(-)a/examples3/widgets.py (-1 / +13 lines)
Lines 1-7 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
2
3
3
4
import sys, string
4
# Trinity-specific paths
5
import sys, os, string
6
tqt_modules = []
7
for m_path in sys.path:
8
    if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
9
        m_sip_dir = os.path.join(m_path, 'sip4_tqt')
10
        tqt_modules.insert(0, m_sip_dir)
11
    if os.path.exists(os.path.join(m_path, 'python_tqt')):
12
        m_pyqt_dir = os.path.join(m_path, 'python_tqt')
13
        tqt_modules.insert(0, m_pyqt_dir)
14
for m_path in tqt_modules:
15
    sys.path.insert(0, m_path)
16
5
from qt import *
17
from qt import *
6
18
7
#
19
#

Return to bug 2693