Browse Source

Fix examples to properly import python_tqt module

This resolves bug 2693

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 2 years ago
parent
commit
e790d08307
94 changed files with 125 additions and 125 deletions
  1. 1
    1
      examples2/aclock.py
  2. 1
    1
      examples2/addressbook.py
  3. 5
    5
      examples2/application.py
  4. 1
    1
      examples2/buttongroups.py
  5. 1
    1
      examples2/dclock.py
  6. 1
    1
      examples2/desktop.py
  7. 1
    1
      examples2/dirview.py
  8. 1
    1
      examples2/dragdrop.py
  9. 1
    1
      examples2/dropsite.py
  10. 2
    2
      examples2/gears.py
  11. 1
    1
      examples2/menu.py
  12. 1
    1
      examples2/secret.py
  13. 2
    2
      examples2/semaphore.py
  14. 1
    1
      examples2/splitter.py
  15. 1
    1
      examples2/table.py
  16. 1
    1
      examples2/themes.py
  17. 1
    1
      examples2/tut1.py
  18. 1
    1
      examples2/tut10.py
  19. 1
    1
      examples2/tut11.py
  20. 1
    1
      examples2/tut12.py
  21. 1
    1
      examples2/tut13.py
  22. 1
    1
      examples2/tut14.py
  23. 1
    1
      examples2/tut2.py
  24. 1
    1
      examples2/tut3.py
  25. 1
    1
      examples2/tut4.py
  26. 1
    1
      examples2/tut5.py
  27. 1
    1
      examples2/tut6.py
  28. 1
    1
      examples2/tut7.py
  29. 1
    1
      examples2/tut8.py
  30. 1
    1
      examples2/tut9.py
  31. 1
    1
      examples2/widgets.py
  32. 2
    2
      examples3/SQL/dbconnect.py
  33. 1
    1
      examples3/SQL/frmconnect.py
  34. 1
    1
      examples3/SQL/runform1.py
  35. 1
    1
      examples3/SQL/runform2.py
  36. 2
    2
      examples3/SQL/runsqlex.py
  37. 2
    2
      examples3/SQL/sqlcustom1.py
  38. 2
    2
      examples3/SQL/sqlsubclass5.py
  39. 2
    2
      examples3/SQL/sqltable4.py
  40. 1
    1
      examples3/aclock.py
  41. 1
    1
      examples3/addressbook.py
  42. 1
    1
      examples3/application.py
  43. 1
    1
      examples3/biff.py
  44. 2
    2
      examples3/bigtable.py
  45. 1
    1
      examples3/buttongroups.py
  46. 2
    2
      examples3/canvas/canvas.py
  47. 1
    1
      examples3/checklists.py
  48. 1
    1
      examples3/cursor.py
  49. 1
    1
      examples3/dclock.py
  50. 1
    1
      examples3/desktop.py
  51. 1
    1
      examples3/dirview.py
  52. 1
    1
      examples3/dragdrop.py
  53. 1
    1
      examples3/drawlines.py
  54. 1
    1
      examples3/dropsite.py
  55. 1
    1
      examples3/fontdisplayer.py
  56. 1
    1
      examples3/fonts.py
  57. 2
    2
      examples3/gears.py
  58. 1
    1
      examples3/i18n/i18n.py
  59. 1
    1
      examples3/i18n/mywidget.py
  60. 1
    1
      examples3/lineedits.py
  61. 1
    1
      examples3/listbox.py
  62. 1
    1
      examples3/listboxcombo.py
  63. 1
    1
      examples3/mdi.py
  64. 1
    1
      examples3/menu.py
  65. 1
    1
      examples3/progress.py
  66. 1
    1
      examples3/progressbar.py
  67. 1
    1
      examples3/qdir.py
  68. 1
    1
      examples3/qmag.py
  69. 1
    1
      examples3/rangecontrols.py
  70. 1
    1
      examples3/richtext.py
  71. 1
    1
      examples3/secret.py
  72. 2
    2
      examples3/semaphore.py
  73. 2
    2
      examples3/smalltable.py
  74. 1
    1
      examples3/splitter.py
  75. 1
    1
      examples3/tabdialog.py
  76. 2
    2
      examples3/tablestatistics.py
  77. 1
    1
      examples3/tooltip.py
  78. 1
    1
      examples3/tut1.py
  79. 2
    2
      examples3/tut10.py
  80. 2
    2
      examples3/tut11.py
  81. 2
    2
      examples3/tut12.py
  82. 2
    2
      examples3/tut13.py
  83. 3
    3
      examples3/tut14.py
  84. 1
    1
      examples3/tut2.py
  85. 1
    1
      examples3/tut3.py
  86. 2
    2
      examples3/tut4.py
  87. 2
    2
      examples3/tut5.py
  88. 2
    2
      examples3/tut6.py
  89. 2
    2
      examples3/tut7.py
  90. 2
    2
      examples3/tut8.py
  91. 2
    2
      examples3/tut9.py
  92. 2
    2
      examples3/webbrowser/mainwindow.py
  93. 2
    2
      examples3/webbrowser/webbrowser.py
  94. 1
    1
      examples3/widgets.py

+ 1
- 1
examples2/aclock.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 def TQMIN(x, y):
7 7
   if y > x: return y

+ 1
- 1
examples2/addressbook.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 import sys, string
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 TRUE  = 1
10 10
 FALSE = 0

+ 5
- 5
examples2/application.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 import sys, string
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 
10 10
 fileopen = [
@@ -104,13 +104,13 @@ class ApplicationWindow(TQMainWindow):
104 104
         self.fileTools = TQToolBar(self,'file operations')
105 105
 
106 106
         openIcon = TQPixmap(fileopen)
107
-        self.fileOpen = TQToolButton(openIcon,'Open File',TQString.null,self.load,self.fileTools,'open file')
107
+        self.fileOpen = TQToolButton(TQIconSet(openIcon),'Open File',TQString.null,self.load,self.fileTools,'open file')
108 108
 
109 109
         saveIcon = TQPixmap(filesave)
110
-        self.fileSave = TQToolButton(saveIcon,'Save File',TQString.null,self.save,self.fileTools,'save file')
111
-	      
110
+        self.fileSave = TQToolButton(TQIconSet(saveIcon),'Save File',TQString.null,self.save,self.fileTools,'save file')
111
+
112 112
         printIcon = TQPixmap(fileprint)
113
-        self.filePrint = TQToolButton(printIcon,'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
113
+        self.filePrint = TQToolButton(TQIconSet(printIcon),'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
114 114
 
115 115
         TQWhatsThis.whatsThisButton(self.fileTools)
116 116
 

+ 1
- 1
examples2/buttongroups.py View File

@@ -10,7 +10,7 @@
10 10
 #*****************************************************************************/
11 11
 
12 12
 import sys
13
-from qt import *
13
+from python_tqt.qt import *
14 14
 
15 15
 TRUE  = 1
16 16
 FALSE = 0

+ 1
- 1
examples2/dclock.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 import sys, string
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 
10 10
 class DigitalClock(TQLCDNumber):

+ 1
- 1
examples2/desktop.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 seed = 0.353535353535
7 7
 KINDA_RAND_MAX = 32767

+ 1
- 1
examples2/dirview.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 class Directory(TQListViewItem):
7 7
     def __init__(self, parent, name=None):

+ 1
- 1
examples2/dragdrop.py View File

@@ -3,7 +3,7 @@
3 3
 # Ported to PyTQt by Issac Trotts on Jan 1, 2002
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 import dropsite, secret
9 9
 

+ 1
- 1
examples2/dropsite.py View File

@@ -1,7 +1,7 @@
1 1
 # This is part of the dragdrop example.
2 2
 
3 3
 
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 import secret
7 7
 

+ 2
- 2
examples2/gears.py View File

@@ -3,8 +3,8 @@
3 3
 
4 4
 import sys
5 5
 import math
6
-from qt import *
7
-from qtgl import *
6
+from python_tqt.qt import *
7
+from python_tqt.qtgl import *
8 8
 from OpenGL.GL import *
9 9
 
10 10
 def gear(inner_radius,outer_radius,width,teeth,tooth_depth):

+ 1
- 1
examples2/menu.py View File

@@ -11,7 +11,7 @@
11 11
 #*****************************************************************************/
12 12
 
13 13
 import sys, string
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 TRUE  = 1
17 17
 FALSE = 0

+ 1
- 1
examples2/secret.py View File

@@ -1,7 +1,7 @@
1 1
 # This is part of the dragdrop example.
2 2
 
3 3
 
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 
7 7
 def canDecode(e):

+ 2
- 2
examples2/semaphore.py View File

@@ -7,12 +7,12 @@ import sys
7 7
 
8 8
 # Check if thread support was enabled.
9 9
 try:
10
-    from qt import TQThread
10
+    from python_tqt.qt import TQThread
11 11
 except:
12 12
     print "Thread support not enabled"
13 13
     sys.exit(1)
14 14
 
15
-from qt import *
15
+from python_tqt.qt import *
16 16
 
17 17
 
18 18
 # The semaphore instances.

+ 1
- 1
examples2/splitter.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 class Test(TQWidget):
7 7
     def __init__(self, parent=None, name='Test', f=0):

+ 1
- 1
examples2/table.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 class Table(TQTableView):
7 7
   def __init__(self, numRows, numCols, parent=None, name=''):

+ 1
- 1
examples2/themes.py View File

@@ -13,7 +13,7 @@ import os, sys
13 13
 
14 14
 # include files for QT
15 15
 
16
-from qt import *
16
+from python_tqt.qt import *
17 17
 
18 18
 
19 19
 class ButtonsGroups(TQVBox):

+ 1
- 1
examples2/tut1.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 1.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 a = TQApplication(sys.argv)

+ 1
- 1
examples2/tut10.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 10.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 class LCDRange(TQVBox):

+ 1
- 1
examples2/tut11.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 import sys
6 6
 import math
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 
10 10
 class LCDRange(TQVBox):

+ 1
- 1
examples2/tut12.py View File

@@ -5,7 +5,7 @@
5 5
 import sys
6 6
 import math
7 7
 import random
8
-from qt import *
8
+from python_tqt.qt import *
9 9
 
10 10
 
11 11
 class LCDRange(TQVBox):

+ 1
- 1
examples2/tut13.py View File

@@ -5,7 +5,7 @@
5 5
 import sys
6 6
 import math
7 7
 import random
8
-from qt import *
8
+from python_tqt.qt import *
9 9
 
10 10
 
11 11
 class LCDRange(TQWidget):

+ 1
- 1
examples2/tut14.py View File

@@ -5,7 +5,7 @@
5 5
 import sys
6 6
 import math
7 7
 import random
8
-from qt import *
8
+from python_tqt.qt import *
9 9
 
10 10
 
11 11
 class LCDRange(TQWidget):

+ 1
- 1
examples2/tut2.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 2.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 a = TQApplication(sys.argv)

+ 1
- 1
examples2/tut3.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 3.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 a = TQApplication(sys.argv)
9 9
 

+ 1
- 1
examples2/tut4.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 4.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 class MyWidget(TQWidget):

+ 1
- 1
examples2/tut5.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 5.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 class MyWidget(TQVBox):

+ 1
- 1
examples2/tut6.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 6.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 class LCDRange(TQVBox):

+ 1
- 1
examples2/tut7.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 7.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 class LCDRange(TQVBox):

+ 1
- 1
examples2/tut8.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 8.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 class LCDRange(TQVBox):

+ 1
- 1
examples2/tut9.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 9.
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 
9 9
 class LCDRange(TQVBox):

+ 1
- 1
examples2/widgets.py View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 
4 4
 import sys, string
5
-from qt import *
5
+from python_tqt.qt import *
6 6
 
7 7
 #
8 8
 ## Constructs an analog clock widget that uses an internal TQTimer.

+ 2
- 2
examples3/SQL/dbconnect.py View File

@@ -1,8 +1,8 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
5
-from qtsql import *
4
+from python_tqt.qt import *
5
+from python_tqt.qtsql import *
6 6
 
7 7
 from frmconnect import frmConnect
8 8
 from dbpar import *

+ 1
- 1
examples3/SQL/frmconnect.py View File

@@ -6,7 +6,7 @@
6 6
 # WARNING! All changes made in this file will be lost!
7 7
 
8 8
 
9
-from qt import *
9
+from python_tqt.qt import *
10 10
 
11 11
 
12 12
 class frmConnect(TQDialog):

+ 1
- 1
examples3/SQL/runform1.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 from form1 import Form1
7 7
 from dbconnect import createConnection

+ 1
- 1
examples3/SQL/runform2.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 from form2 import Form2
7 7
 from dbconnect import createConnection

+ 2
- 2
examples3/SQL/runsqlex.py View File

@@ -1,8 +1,8 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
5
-from qtsql import *
4
+from python_tqt.qt import *
5
+from python_tqt.qtsql import *
6 6
 
7 7
 from sqlex import SqlEx
8 8
 from connect import ConnectDialog

+ 2
- 2
examples3/SQL/sqlcustom1.py View File

@@ -11,8 +11,8 @@
11 11
 #*****************************************************************************/
12 12
 
13 13
 import sys
14
-from qt import *
15
-from qtsql import *
14
+from python_tqt.qt import *
15
+from python_tqt.qtsql import *
16 16
 
17 17
 from dbconnect import createConnection
18 18
 

+ 2
- 2
examples3/SQL/sqlsubclass5.py View File

@@ -11,8 +11,8 @@
11 11
 #*****************************************************************************/
12 12
 
13 13
 import sys
14
-from qt import *
15
-from qtsql import *
14
+from python_tqt.qt import *
15
+from python_tqt.qtsql import *
16 16
 
17 17
 from dbconnect import createConnection
18 18
 

+ 2
- 2
examples3/SQL/sqltable4.py View File

@@ -11,8 +11,8 @@
11 11
 #*****************************************************************************/
12 12
 
13 13
 import sys
14
-from qt import *
15
-from qtsql import *
14
+from python_tqt.qt import *
15
+from python_tqt.qtsql import *
16 16
 
17 17
 from dbconnect import createConnection
18 18
 

+ 1
- 1
examples3/aclock.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 def TQMIN(x, y):
7 7
   if y > x: return y

+ 1
- 1
examples3/addressbook.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 import sys, string
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 TRUE  = 1
10 10
 FALSE = 0

+ 1
- 1
examples3/application.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 import sys, string
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 
10 10
 fileopen = [

+ 1
- 1
examples3/biff.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import os, sys, string
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 
7 7
 if TQT_VERSION < 0x030100:

+ 2
- 2
examples3/bigtable.py View File

@@ -12,8 +12,8 @@
12 12
 
13 13
 import sys
14 14
 import os
15
-from qt import *
16
-from qttable import *
15
+from python_tqt.qt import *
16
+from python_tqt.qttable import *
17 17
 
18 18
 TRUE  = 1
19 19
 FALSE = 0

+ 1
- 1
examples3/buttongroups.py View File

@@ -10,7 +10,7 @@
10 10
 #*****************************************************************************/
11 11
 
12 12
 import sys
13
-from qt import *
13
+from python_tqt.qt import *
14 14
 
15 15
 TRUE  = 1
16 16
 FALSE = 0

+ 2
- 2
examples3/canvas/canvas.py View File

@@ -1,8 +1,8 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
5
-from qtcanvas import *
4
+from python_tqt.qt import *
5
+from python_tqt.qtcanvas import *
6 6
 import random
7 7
 
8 8
 

+ 1
- 1
examples3/checklists.py View File

@@ -4,7 +4,7 @@
4 4
 # Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) <yshurik@thekompany.com>
5 5
 
6 6
 import sys 
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 TRUE = 1
10 10
 FALSE = 0 

+ 1
- 1
examples3/cursor.py View File

@@ -10,7 +10,7 @@
10 10
 ***************************************************************************"""
11 11
 
12 12
 import sys
13
-from qt import *
13
+from python_tqt.qt import *
14 14
 
15 15
 # cb_bits and cm_bits were generated by X bitmap program.
16 16
 

+ 1
- 1
examples3/dclock.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 import sys, string
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 
10 10
 class DigitalClock(TQLCDNumber):

+ 1
- 1
examples3/desktop.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 seed = 0.353535353535
7 7
 KINDA_RAND_MAX = 32767

+ 1
- 1
examples3/dirview.py View File

@@ -12,7 +12,7 @@
12 12
 ***************************************************************************"""
13 13
 
14 14
 import sys
15
-from qt import *
15
+from python_tqt.qt import *
16 16
 
17 17
 folder_closed_xpm = [
18 18
     "16 16 9 1",

+ 1
- 1
examples3/dragdrop.py View File

@@ -3,7 +3,7 @@
3 3
 # Ported to PyTQt by Issac Trotts on Jan 1, 2002
4 4
 
5 5
 import sys
6
-from qt import *
6
+from python_tqt.qt import *
7 7
 
8 8
 import dropsite, secret
9 9
 

+ 1
- 1
examples3/drawlines.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys, random
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 TRUE = 1
7 7
 FALSE = 0

+ 1
- 1
examples3/dropsite.py View File

@@ -1,7 +1,7 @@
1 1
 # This is part of the dragdrop example.
2 2
 
3 3
 
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 import secret
7 7
 

+ 1
- 1
examples3/fontdisplayer.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 class FontRowTable( TQFrame ):
17 17
     def __init__( self, parent=None, name=None ):

+ 1
- 1
examples3/fonts.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 class Viewer( TQWidget ):
17 17
     def __init__( self ):

+ 2
- 2
examples3/gears.py View File

@@ -3,8 +3,8 @@
3 3
 
4 4
 import sys
5 5
 import math
6
-from qt import *
7
-from qtgl import *
6
+from python_tqt.qt import *
7
+from python_tqt.qtgl import *
8 8
 from OpenGL.GL import *
9 9
 
10 10
 def gear(inner_radius,outer_radius,width,teeth,tooth_depth):

+ 1
- 1
examples3/i18n/i18n.py View File

@@ -5,7 +5,7 @@
5 5
 from whrandom import randint
6 6
 import sys
7 7
 
8
-from qt import *
8
+from python_tqt.qt import *
9 9
 
10 10
 from mywidget import MyWidget
11 11
 

+ 1
- 1
examples3/i18n/mywidget.py View File

@@ -1,6 +1,6 @@
1 1
 # Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
2 2
 
3
-from qt import *
3
+from python_tqt.qt import *
4 4
 
5 5
 class MyWidget(TQMainWindow):
6 6
 

+ 1
- 1
examples3/lineedits.py View File

@@ -11,7 +11,7 @@
11 11
 #*****************************************************************************/
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 TRUE  = 1
17 17
 FALSE = 0

+ 1
- 1
examples3/listbox.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 FALSE = 0
17 17
 TRUE  = 1

+ 1
- 1
examples3/listboxcombo.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 FALSE = 0
17 17
 TRUE  = 1

+ 1
- 1
examples3/mdi.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 
6 6
 import sys, string
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 
9 9
 
10 10
 fileopen = [

+ 1
- 1
examples3/menu.py View File

@@ -11,7 +11,7 @@
11 11
 #*****************************************************************************/
12 12
 
13 13
 import sys, string
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 TRUE  = 1
17 17
 FALSE = 0

+ 1
- 1
examples3/progress.py View File

@@ -13,7 +13,7 @@
13 13
 #*****************************************************************************/
14 14
 
15 15
 import sys
16
-from qt import *
16
+from python_tqt.qt import *
17 17
 from random import randint
18 18
 
19 19
 class AnimatedThingy(TQLabel):

+ 1
- 1
examples3/progressbar.py View File

@@ -12,7 +12,7 @@
12 12
 
13 13
 #import pdb
14 14
 import sys
15
-from qt import *
15
+from python_tqt.qt import *
16 16
 
17 17
 FALSE = 0
18 18
 TRUE  = 1

+ 1
- 1
examples3/qdir.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 import os
6 6
 import pickle
7
-from qt import *
7
+from python_tqt.qt import *
8 8
 from dirview import Directory, DirectoryView
9 9
 
10 10
 bookmarks = [

+ 1
- 1
examples3/qmag.py View File

@@ -11,7 +11,7 @@
11 11
 #*****************************************************************************/
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 TRUE  = 1
17 17
 FALSE = 0

+ 1
- 1
examples3/rangecontrols.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 INT_MAX = sys.maxint
17 17
 

+ 1
- 1
examples3/richtext.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 sayings = [
17 17
     "<b>Saying 1:</b><br>"

+ 1
- 1
examples3/secret.py View File

@@ -1,7 +1,7 @@
1 1
 # This is part of the dragdrop example.
2 2
 
3 3
 
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 
7 7
 def canDecode(e):

+ 2
- 2
examples3/semaphore.py View File

@@ -7,12 +7,12 @@ import sys
7 7
 
8 8
 # Check if thread support was enabled.
9 9
 try:
10
-    from qt import TQThread
10
+    from python_tqt.qt import TQThread
11 11
 except:
12 12
     print "Thread support not enabled"
13 13
     sys.exit(1)
14 14
 
15
-from qt import *
15
+from python_tqt.qt import *
16 16
 
17 17
 
18 18
 # The semaphore instances.

+ 2
- 2
examples3/smalltable.py View File

@@ -12,8 +12,8 @@
12 12
 
13 13
 import sys
14 14
 import os
15
-from qt import *
16
-from qttable import *
15
+from python_tqt.qt import *
16
+from python_tqt.qttable import *
17 17
 
18 18
 TRUE  = 1
19 19
 FALSE = 0

+ 1
- 1
examples3/splitter.py View File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import sys
4
-from qt import *
4
+from python_tqt.qt import *
5 5
 
6 6
 class Test(TQWidget):
7 7
     def __init__(self, parent=None, name='Test', f=0):

+ 1
- 1
examples3/tabdialog.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 
16 16
 class TabDialog( TQTabDialog ):
17 17
     def __init__( self, parent=None, name=None, filename=None ):

+ 2
- 2
examples3/tablestatistics.py View File

@@ -12,8 +12,8 @@
12 12
 
13 13
 import sys
14 14
 import os
15
-from qt import *
16
-from qttable import *
15
+from python_tqt.qt import *
16
+from python_tqt.qttable import *
17 17
 
18 18
 TRUE  = 1
19 19
 FALSE = 0

+ 1
- 1
examples3/tooltip.py View File

@@ -11,7 +11,7 @@
11 11
 ***************************************************************************"""
12 12
 
13 13
 import sys
14
-from qt import *
14
+from python_tqt.qt import *
15 15
 from random import random
16 16
 
17 17
 class DynamicTip( TQToolTip ):

+ 1
- 1
examples3/tut1.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 1.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 a = qt.TQApplication(sys.argv)

+ 2
- 2
examples3/tut10.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 10.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 class LCDRange(qt.TQVBox):
@@ -101,7 +101,7 @@ class MyWidget(qt.TQWidget):
101 101
 
102 102
         quit = qt.TQPushButton("&Quit", self, "quit")
103 103
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
104
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
104
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
105 105
 
106 106
         self.angle = LCDRange(self, "angle")
107 107
         self.angle.setRange(5, 70)

+ 2
- 2
examples3/tut11.py View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 import sys
6 6
 import math
7
-import qt
7
+from python_tqt import qt
8 8
 
9 9
 
10 10
 class LCDRange(qt.TQVBox):
@@ -162,7 +162,7 @@ class MyWidget(qt.TQWidget):
162 162
 
163 163
         quit = qt.TQPushButton("&Quit", self, "quit")
164 164
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
165
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
165
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
166 166
 
167 167
         self.angle = LCDRange(self, "angle")
168 168
         self.angle.setRange(5, 70)

+ 2
- 2
examples3/tut12.py View File

@@ -5,7 +5,7 @@
5 5
 import sys
6 6
 import math
7 7
 import random
8
-import qt
8
+from python_tqt import qt
9 9
 
10 10
 
11 11
 class LCDRange(qt.TQVBox):
@@ -202,7 +202,7 @@ class MyWidget(qt.TQWidget):
202 202
 
203 203
         quit = qt.TQPushButton("&Quit", self, "quit")
204 204
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
205
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
205
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
206 206
 
207 207
         self.angle = LCDRange("ANGLE", self, "angle")
208 208
         self.angle.setRange(5, 70)

+ 2
- 2
examples3/tut13.py View File

@@ -5,7 +5,7 @@
5 5
 import sys
6 6
 import math
7 7
 import random
8
-import qt
8
+from python_tqt import qt
9 9
 
10 10
 
11 11
 class LCDRange(qt.TQWidget):
@@ -237,7 +237,7 @@ class GameBoard(qt.TQWidget):
237 237
 
238 238
         quit = qt.TQPushButton("&Quit", self, "quit")
239 239
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
240
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
240
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
241 241
 
242 242
         self.angle = LCDRange("ANGLE", self, "angle")
243 243
         self.angle.setRange(5, 70)

+ 3
- 3
examples3/tut14.py View File

@@ -5,7 +5,7 @@
5 5
 import sys
6 6
 import math
7 7
 import random
8
-import qt
8
+from python_tqt import qt
9 9
 
10 10
 
11 11
 class LCDRange(qt.TQWidget):
@@ -277,7 +277,7 @@ class GameBoard(qt.TQWidget):
277 277
 
278 278
         quit = qt.TQPushButton("&Quit", self, "quit")
279 279
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
280
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
280
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
281 281
 
282 282
         self.angle = LCDRange("ANGLE", self, "angle")
283 283
         self.angle.setRange(5, 70)
@@ -316,7 +316,7 @@ class GameBoard(qt.TQWidget):
316 316
         accel = qt.TQAccel(self)
317 317
         accel.connectItem(accel.insertItem(qt.TQt.Key_Enter), self.fire)
318 318
         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()"))
319
+        accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.tqApp, qt.SLOT("quit()"))
320 320
 
321 321
         grid = qt.TQGridLayout(self, 2, 2, 10)
322 322
         grid.addWidget(quit, 0, 0)

+ 1
- 1
examples3/tut2.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 2.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 a = qt.TQApplication(sys.argv)

+ 1
- 1
examples3/tut3.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 3.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 a = qt.TQApplication(sys.argv)

+ 2
- 2
examples3/tut4.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 4.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 class MyWidget(qt.TQWidget):
@@ -17,7 +17,7 @@ class MyWidget(qt.TQWidget):
17 17
         quit.setGeometry(62, 40, 75, 30)
18 18
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
19 19
 
20
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
20
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
21 21
 
22 22
 
23 23
 a = qt.TQApplication(sys.argv)

+ 2
- 2
examples3/tut5.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 5.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 class MyWidget(qt.TQVBox):
@@ -13,7 +13,7 @@ class MyWidget(qt.TQVBox):
13 13
         quit = qt.TQPushButton("Quit", self, "quit")
14 14
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
15 15
 
16
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
16
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
17 17
 
18 18
         lcd = qt.TQLCDNumber(2, self, "lcd")
19 19
 

+ 2
- 2
examples3/tut6.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 6.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 class LCDRange(qt.TQVBox):
@@ -24,7 +24,7 @@ class MyWidget(qt.TQVBox):
24 24
         quit = qt.TQPushButton("Quit", self, "quit")
25 25
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
26 26
 
27
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
27
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
28 28
 
29 29
         grid = qt.TQGrid(4, self)
30 30
 

+ 2
- 2
examples3/tut7.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 7.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 class LCDRange(qt.TQVBox):
@@ -31,7 +31,7 @@ class MyWidget(qt.TQVBox):
31 31
         quit = qt.TQPushButton("Quit", self, "quit")
32 32
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
33 33
 
34
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
34
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
35 35
 
36 36
         grid = qt.TQGrid(4, self)
37 37
 

+ 2
- 2
examples3/tut8.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 8.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 class LCDRange(qt.TQVBox):
@@ -67,7 +67,7 @@ class MyWidget(qt.TQWidget):
67 67
 
68 68
         quit = qt.TQPushButton("Quit", self, "quit")
69 69
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
70
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
70
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
71 71
 
72 72
         self.angle = LCDRange(self, "angle")
73 73
         self.angle.setRange(5, 70)

+ 2
- 2
examples3/tut9.py View File

@@ -3,7 +3,7 @@
3 3
 # TQt tutorial 9.
4 4
 
5 5
 import sys
6
-import qt
6
+from python_tqt import qt
7 7
 
8 8
 
9 9
 class LCDRange(qt.TQVBox):
@@ -73,7 +73,7 @@ class MyWidget(qt.TQWidget):
73 73
 
74 74
         quit = qt.TQPushButton("&Quit", self, "quit")
75 75
         quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
76
-        self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
76
+        self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
77 77
 
78 78
         self.angle = LCDRange(self, "angle")
79 79
         self.angle.setRange(5, 70)

+ 2
- 2
examples3/webbrowser/mainwindow.py View File

@@ -8,8 +8,8 @@
8 8
 # WARNING! All changes made in this file will be lost!
9 9
 
10 10
 
11
-from qt import *
12
-from qtaxcontainer import TQAxWidget
11
+from python_tqt.qt import *
12
+from python_tqt.qtaxcontainer import TQAxWidget
13 13
 
14 14
 image0_data = [
15 15
 "32 32 3 1",

+ 2
- 2
examples3/webbrowser/webbrowser.py View File

@@ -7,8 +7,8 @@
7 7
 
8 8
 
9 9
 import sys
10
-import qt
11
-import qtaxcontainer
10
+from python_tqt import qt
11
+from python_tqt import qtaxcontainer
12 12
 
13 13
 import mainwindow
14 14
 

+ 1
- 1
examples3/widgets.py View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 
4 4
 import sys, string
5
-from qt import *
5
+from python_tqt.qt import *
6 6
 
7 7
 #
8 8
 ## Constructs an analog clock widget that uses an internal TQTimer.

Loading…
Cancel
Save