summaryrefslogtreecommitdiffstats
path: root/examples2
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-25 11:01:09 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-25 11:01:19 +0200
commitf303e4dc2ba3075192db2ab1fc570abd10ba224a (patch)
treeeb4cc574e4f5a98bcc1f24ebab980cc38e3354e0 /examples2
parentd6f454456232c37c2adc43da7172197dae4c973a (diff)
downloadpytqt-f303e4dc2ba3075192db2ab1fc570abd10ba224a.tar.gz
pytqt-f303e4dc2ba3075192db2ab1fc570abd10ba224a.zip
Fix examples to properly import python_tqt module
This resolves bug 2693 Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e790d08307644b6718b2a547c21370b82aa4f376)
Diffstat (limited to 'examples2')
-rwxr-xr-xexamples2/aclock.py2
-rwxr-xr-xexamples2/addressbook.py2
-rwxr-xr-xexamples2/application.py10
-rwxr-xr-xexamples2/buttongroups.py2
-rwxr-xr-xexamples2/dclock.py2
-rwxr-xr-xexamples2/desktop.py2
-rwxr-xr-xexamples2/dirview.py2
-rwxr-xr-xexamples2/dragdrop.py2
-rw-r--r--examples2/dropsite.py2
-rwxr-xr-xexamples2/gears.py4
-rwxr-xr-xexamples2/menu.py2
-rw-r--r--examples2/secret.py2
-rwxr-xr-xexamples2/semaphore.py4
-rwxr-xr-xexamples2/splitter.py2
-rwxr-xr-xexamples2/table.py2
-rwxr-xr-xexamples2/themes.py2
-rwxr-xr-xexamples2/tut1.py2
-rwxr-xr-xexamples2/tut10.py2
-rwxr-xr-xexamples2/tut11.py2
-rwxr-xr-xexamples2/tut12.py2
-rwxr-xr-xexamples2/tut13.py2
-rwxr-xr-xexamples2/tut14.py2
-rwxr-xr-xexamples2/tut2.py2
-rwxr-xr-xexamples2/tut3.py2
-rwxr-xr-xexamples2/tut4.py2
-rwxr-xr-xexamples2/tut5.py2
-rwxr-xr-xexamples2/tut6.py2
-rwxr-xr-xexamples2/tut7.py2
-rwxr-xr-xexamples2/tut8.py2
-rwxr-xr-xexamples2/tut9.py2
-rwxr-xr-xexamples2/widgets.py2
31 files changed, 37 insertions, 37 deletions
diff --git a/examples2/aclock.py b/examples2/aclock.py
index 9fc773b..3c04e20 100755
--- a/examples2/aclock.py
+++ b/examples2/aclock.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
-from qt import *
+from python_tqt.qt import *
def TQMIN(x, y):
if y > x: return y
diff --git a/examples2/addressbook.py b/examples2/addressbook.py
index 6d7309b..96746c0 100755
--- a/examples2/addressbook.py
+++ b/examples2/addressbook.py
@@ -4,7 +4,7 @@
import sys, string
-from qt import *
+from python_tqt.qt import *
TRUE = 1
FALSE = 0
diff --git a/examples2/application.py b/examples2/application.py
index 97d07bf..291231e 100755
--- a/examples2/application.py
+++ b/examples2/application.py
@@ -4,7 +4,7 @@
import sys, string
-from qt import *
+from python_tqt.qt import *
fileopen = [
@@ -104,13 +104,13 @@ class ApplicationWindow(TQMainWindow):
self.fileTools = TQToolBar(self,'file operations')
openIcon = TQPixmap(fileopen)
- self.fileOpen = TQToolButton(openIcon,'Open File',TQString.null,self.load,self.fileTools,'open file')
+ self.fileOpen = TQToolButton(TQIconSet(openIcon),'Open File',TQString.null,self.load,self.fileTools,'open file')
saveIcon = TQPixmap(filesave)
- self.fileSave = TQToolButton(saveIcon,'Save File',TQString.null,self.save,self.fileTools,'save file')
-
+ self.fileSave = TQToolButton(TQIconSet(saveIcon),'Save File',TQString.null,self.save,self.fileTools,'save file')
+
printIcon = TQPixmap(fileprint)
- self.filePrint = TQToolButton(printIcon,'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
+ self.filePrint = TQToolButton(TQIconSet(printIcon),'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
TQWhatsThis.whatsThisButton(self.fileTools)
diff --git a/examples2/buttongroups.py b/examples2/buttongroups.py
index 147952a..88836c6 100755
--- a/examples2/buttongroups.py
+++ b/examples2/buttongroups.py
@@ -10,7 +10,7 @@
#*****************************************************************************/
import sys
-from qt import *
+from python_tqt.qt import *
TRUE = 1
FALSE = 0
diff --git a/examples2/dclock.py b/examples2/dclock.py
index d129681..eb4e990 100755
--- a/examples2/dclock.py
+++ b/examples2/dclock.py
@@ -4,7 +4,7 @@
import sys, string
-from qt import *
+from python_tqt.qt import *
class DigitalClock(TQLCDNumber):
diff --git a/examples2/desktop.py b/examples2/desktop.py
index a2cccb1..049f39d 100755
--- a/examples2/desktop.py
+++ b/examples2/desktop.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
-from qt import *
+from python_tqt.qt import *
seed = 0.353535353535
KINDA_RAND_MAX = 32767
diff --git a/examples2/dirview.py b/examples2/dirview.py
index 66beda1..11e7eed 100755
--- a/examples2/dirview.py
+++ b/examples2/dirview.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
-from qt import *
+from python_tqt.qt import *
class Directory(TQListViewItem):
def __init__(self, parent, name=None):
diff --git a/examples2/dragdrop.py b/examples2/dragdrop.py
index 0a7177b..a715170 100755
--- a/examples2/dragdrop.py
+++ b/examples2/dragdrop.py
@@ -3,7 +3,7 @@
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
import sys
-from qt import *
+from python_tqt.qt import *
import dropsite, secret
diff --git a/examples2/dropsite.py b/examples2/dropsite.py
index 8dcbabc..94b7e57 100644
--- a/examples2/dropsite.py
+++ b/examples2/dropsite.py
@@ -1,7 +1,7 @@
# This is part of the dragdrop example.
-from qt import *
+from python_tqt.qt import *
import secret
diff --git a/examples2/gears.py b/examples2/gears.py
index 3e10a67..60f313c 100755
--- a/examples2/gears.py
+++ b/examples2/gears.py
@@ -3,8 +3,8 @@
import sys
import math
-from qt import *
-from qtgl import *
+from python_tqt.qt import *
+from python_tqt.qtgl import *
from OpenGL.GL import *
def gear(inner_radius,outer_radius,width,teeth,tooth_depth):
diff --git a/examples2/menu.py b/examples2/menu.py
index 4f1cadd..b5c14d8 100755
--- a/examples2/menu.py
+++ b/examples2/menu.py
@@ -11,7 +11,7 @@
#*****************************************************************************/
import sys, string
-from qt import *
+from python_tqt.qt import *
TRUE = 1
FALSE = 0
diff --git a/examples2/secret.py b/examples2/secret.py
index b405737..8c8de85 100644
--- a/examples2/secret.py
+++ b/examples2/secret.py
@@ -1,7 +1,7 @@
# This is part of the dragdrop example.
-from qt import *
+from python_tqt.qt import *
def canDecode(e):
diff --git a/examples2/semaphore.py b/examples2/semaphore.py
index 9aaf6d5..6a16347 100755
--- a/examples2/semaphore.py
+++ b/examples2/semaphore.py
@@ -7,12 +7,12 @@ import sys
# Check if thread support was enabled.
try:
- from qt import TQThread
+ from python_tqt.qt import TQThread
except:
print "Thread support not enabled"
sys.exit(1)
-from qt import *
+from python_tqt.qt import *
# The semaphore instances.
diff --git a/examples2/splitter.py b/examples2/splitter.py
index b2e30cc..36a7556 100755
--- a/examples2/splitter.py
+++ b/examples2/splitter.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
-from qt import *
+from python_tqt.qt import *
class Test(TQWidget):
def __init__(self, parent=None, name='Test', f=0):
diff --git a/examples2/table.py b/examples2/table.py
index f9502b7..36e2cf9 100755
--- a/examples2/table.py
+++ b/examples2/table.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
-from qt import *
+from python_tqt.qt import *
class Table(TQTableView):
def __init__(self, numRows, numCols, parent=None, name=''):
diff --git a/examples2/themes.py b/examples2/themes.py
index e1fb529..4465348 100755
--- a/examples2/themes.py
+++ b/examples2/themes.py
@@ -13,7 +13,7 @@ import os, sys
# include files for QT
-from qt import *
+from python_tqt.qt import *
class ButtonsGroups(TQVBox):
diff --git a/examples2/tut1.py b/examples2/tut1.py
index 43649bf..f6e4b47 100755
--- a/examples2/tut1.py
+++ b/examples2/tut1.py
@@ -3,7 +3,7 @@
# TQt tutorial 1.
import sys
-from qt import *
+from python_tqt.qt import *
a = TQApplication(sys.argv)
diff --git a/examples2/tut10.py b/examples2/tut10.py
index dda42b1..b6213a5 100755
--- a/examples2/tut10.py
+++ b/examples2/tut10.py
@@ -3,7 +3,7 @@
# TQt tutorial 10.
import sys
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQVBox):
diff --git a/examples2/tut11.py b/examples2/tut11.py
index 99c0290..0f60d72 100755
--- a/examples2/tut11.py
+++ b/examples2/tut11.py
@@ -4,7 +4,7 @@
import sys
import math
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQVBox):
diff --git a/examples2/tut12.py b/examples2/tut12.py
index 4adcd1f..95f90b1 100755
--- a/examples2/tut12.py
+++ b/examples2/tut12.py
@@ -5,7 +5,7 @@
import sys
import math
import random
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQVBox):
diff --git a/examples2/tut13.py b/examples2/tut13.py
index 9147c45..1584443 100755
--- a/examples2/tut13.py
+++ b/examples2/tut13.py
@@ -5,7 +5,7 @@
import sys
import math
import random
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQWidget):
diff --git a/examples2/tut14.py b/examples2/tut14.py
index a61c0dd..1ee3a5c 100755
--- a/examples2/tut14.py
+++ b/examples2/tut14.py
@@ -5,7 +5,7 @@
import sys
import math
import random
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQWidget):
diff --git a/examples2/tut2.py b/examples2/tut2.py
index 48ddb89..730b047 100755
--- a/examples2/tut2.py
+++ b/examples2/tut2.py
@@ -3,7 +3,7 @@
# TQt tutorial 2.
import sys
-from qt import *
+from python_tqt.qt import *
a = TQApplication(sys.argv)
diff --git a/examples2/tut3.py b/examples2/tut3.py
index 5284840..b1fe6ee 100755
--- a/examples2/tut3.py
+++ b/examples2/tut3.py
@@ -3,7 +3,7 @@
# TQt tutorial 3.
import sys
-from qt import *
+from python_tqt.qt import *
a = TQApplication(sys.argv)
diff --git a/examples2/tut4.py b/examples2/tut4.py
index 71a5b65..76d99bb 100755
--- a/examples2/tut4.py
+++ b/examples2/tut4.py
@@ -3,7 +3,7 @@
# TQt tutorial 4.
import sys
-from qt import *
+from python_tqt.qt import *
class MyWidget(TQWidget):
diff --git a/examples2/tut5.py b/examples2/tut5.py
index 16577b4..c77d843 100755
--- a/examples2/tut5.py
+++ b/examples2/tut5.py
@@ -3,7 +3,7 @@
# TQt tutorial 5.
import sys
-from qt import *
+from python_tqt.qt import *
class MyWidget(TQVBox):
diff --git a/examples2/tut6.py b/examples2/tut6.py
index d97d842..b26121a 100755
--- a/examples2/tut6.py
+++ b/examples2/tut6.py
@@ -3,7 +3,7 @@
# TQt tutorial 6.
import sys
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQVBox):
diff --git a/examples2/tut7.py b/examples2/tut7.py
index fd0705a..03098aa 100755
--- a/examples2/tut7.py
+++ b/examples2/tut7.py
@@ -3,7 +3,7 @@
# TQt tutorial 7.
import sys
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQVBox):
diff --git a/examples2/tut8.py b/examples2/tut8.py
index 09ea0d3..d252e55 100755
--- a/examples2/tut8.py
+++ b/examples2/tut8.py
@@ -3,7 +3,7 @@
# TQt tutorial 8.
import sys
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQVBox):
diff --git a/examples2/tut9.py b/examples2/tut9.py
index 5938004..5bad8d8 100755
--- a/examples2/tut9.py
+++ b/examples2/tut9.py
@@ -3,7 +3,7 @@
# TQt tutorial 9.
import sys
-from qt import *
+from python_tqt.qt import *
class LCDRange(TQVBox):
diff --git a/examples2/widgets.py b/examples2/widgets.py
index 3dfa524..fc36e7a 100755
--- a/examples2/widgets.py
+++ b/examples2/widgets.py
@@ -2,7 +2,7 @@
import sys, string
-from qt import *
+from python_tqt.qt import *
#
## Constructs an analog clock widget that uses an internal TQTimer.