summaryrefslogtreecommitdiffstats
path: root/examples/uimodules/uimisc.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/uimodules/uimisc.py')
-rw-r--r--examples/uimodules/uimisc.py64
1 files changed, 32 insertions, 32 deletions
diff --git a/examples/uimodules/uimisc.py b/examples/uimodules/uimisc.py
index 7f39b86..f296aac 100644
--- a/examples/uimodules/uimisc.py
+++ b/examples/uimodules/uimisc.py
@@ -1,6 +1,6 @@
import os, time
-from qt import QImage, QLabel, QPixmap, QPushButton, SIGNAL, QColor, QValidator
+from qt import TQImage, TQLabel, TQPixmap, TQPushButton, SIGNAL, TQColor, TQValidator
from tdeui import KMessageBox, KDateValidator, KFloatValidator, KIntValidator, KLineEdit, KLed
@@ -13,33 +13,33 @@ class Page3:
x = 10
y = 15
- green = QColor (0, 255, 0)
- yellow = QColor (255, 255, 0)
- red = QColor (255, 0, 0)
+ green = TQColor (0, 255, 0)
+ yellow = TQColor (255, 255, 0)
+ red = TQColor (255, 0, 0)
- ivLbl = QLabel ("KIntValidator", self.page)
+ ivLbl = TQLabel ("KIntValidator", self.page)
ivLbl.setGeometry (x, y, 100, 20)
ivLbl.show ()
self.iv = KLineEdit (self.page)
self.iv.setGeometry (x, y + 20, 100, 20)
self.iv.show ()
- self.page.connect (self.iv, SIGNAL("textChanged (const QString &)"), self.ivChanged)
+ self.page.connect (self.iv, SIGNAL("textChanged (const TQString &)"), self.ivChanged)
self.ivVal = KIntValidator (self.page)
self.ivVal.setRange (20, 50)
- ivRngLbl = QLabel ("Range is 20 - 50", self.page)
+ ivRngLbl = TQLabel ("Range is 20 - 50", self.page)
ivRngLbl.setGeometry (x, y + 45, 100, 20)
ivRngLbl.show ()
- ivAccLbl = QLabel ("Acceptable", self.page)
+ ivAccLbl = TQLabel ("Acceptable", self.page)
ivAccLbl.setGeometry (x + 125, y + 45, 85, 20)
ivAccLbl.show ()
- ivInterLbl = QLabel ("Intermediate", self.page)
+ ivInterLbl = TQLabel ("Intermediate", self.page)
ivInterLbl.setGeometry (x + 125, y + 20, 85, 20)
ivInterLbl.show ()
- ivInvalLbl = QLabel ("Invalid", self.page)
+ ivInvalLbl = TQLabel ("Invalid", self.page)
ivInvalLbl.setGeometry (x + 125, y - 5, 85, 20)
ivInvalLbl.show ()
self.ivInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page)
@@ -54,29 +54,29 @@ class Page3:
y = y + 100
- fvLbl = QLabel ("KFloatValidator", self.page)
+ fvLbl = TQLabel ("KFloatValidator", self.page)
fvLbl.setGeometry (x, y, 100, 20)
fvLbl.show ()
self.fv = KLineEdit (self.page)
self.fv.setGeometry (x, y + 20, 100, 20)
self.fv.show ()
- self.page.connect (self.fv, SIGNAL("textChanged (const QString &)"), self.fvChanged)
+ self.page.connect (self.fv, SIGNAL("textChanged (const TQString &)"), self.fvChanged)
self.fvVal = KFloatValidator (self.page)
self.fvVal.setRange (10.0, 40.0)
- fvRngLbl = QLabel ("Range is 10.0 - 40.0", self.page)
+ fvRngLbl = TQLabel ("Range is 10.0 - 40.0", self.page)
fvRngLbl.setGeometry (x, y + 45, 100, 20)
fvRngLbl.show ()
- fvAccLbl = QLabel ("Acceptable", self.page)
+ fvAccLbl = TQLabel ("Acceptable", self.page)
fvAccLbl.setGeometry (x + 125, y + 45, 85, 20)
fvAccLbl.show ()
- fvInterLbl = QLabel ("Intermediate", self.page)
+ fvInterLbl = TQLabel ("Intermediate", self.page)
fvInterLbl.setGeometry (x + 125, y + 20, 95, 20)
fvInterLbl.show ()
- fvInvalLbl = QLabel ("Invalid", self.page)
+ fvInvalLbl = TQLabel ("Invalid", self.page)
fvInvalLbl.setGeometry (x + 125, y - 5, 85, 20)
fvInvalLbl.show ()
self.fvInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page)
@@ -91,38 +91,38 @@ class Page3:
y = y + 100
- dvLbl = QLabel ("KDateValidator", self.page)
+ dvLbl = TQLabel ("KDateValidator", self.page)
dvLbl.setGeometry (x, y, 100, 20)
dvLbl.show ()
self.dv = KLineEdit (self.page)
self.dv.setGeometry (x, y + 20, 100, 20)
self.dv.show ()
-# self.page.connect (self.dv, SIGNAL("textChanged (const QString &)"), self.dvChanged)
+# self.page.connect (self.dv, SIGNAL("textChanged (const TQString &)"), self.dvChanged)
self.dvVal = KDateValidator (self.page)
# self.dvVal.setRange (10.0, 40.0)
-# dvRngLbl = QLabel ("Range is 10.0 - 40.0", self.page)
+# dvRngLbl = TQLabel ("Range is 10.0 - 40.0", self.page)
# dvRngLbl.setGeometry (x, y + 45, 100, 20)
# dvRngLbl.show ()
- dvBtn = QPushButton ("Validate", self.page)
+ dvBtn = TQPushButton ("Validate", self.page)
dvBtn.setGeometry (x, y + 45, 60, 22)
dvBtn.show ()
self.page.connect (dvBtn, SIGNAL ("clicked ()"), self.dvChanged)
- dvNoteLbl = QLabel ("Format is locale dependent\nShort date only\nTry DD-MM-YY", self.page)
+ dvNoteLbl = TQLabel ("Format is locale dependent\nShort date only\nTry DD-MM-YY", self.page)
dvNoteLbl.setGeometry (x, y + 70, 150, 60)
dvNoteLbl.show ()
- dvAccLbl = QLabel ("Acceptable", self.page)
+ dvAccLbl = TQLabel ("Acceptable", self.page)
dvAccLbl.setGeometry (x + 125, y + 45, 85, 20)
dvAccLbl.show ()
- dvInterLbl = QLabel ("Intermediate", self.page)
+ dvInterLbl = TQLabel ("Intermediate", self.page)
dvInterLbl.setGeometry (x + 125, y + 20, 85, 20)
dvInterLbl.show ()
- dvInvalLbl = QLabel ("Invalid", self.page)
+ dvInvalLbl = TQLabel ("Invalid", self.page)
dvInvalLbl.setGeometry (x + 125, y - 5, 85, 20)
dvInvalLbl.show ()
self.dvInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page)
@@ -142,9 +142,9 @@ class Page3:
state, i = self.ivVal.validate (self.iv.text ())
- if state == QValidator.Acceptable:
+ if state == TQValidator.Acceptable:
self.ivAccLed.on ()
- elif state == QValidator.Intermediate:
+ elif state == TQValidator.Intermediate:
self.ivInterLed.on ()
else:
self.ivInvalLed.on ()
@@ -156,9 +156,9 @@ class Page3:
state, i = self.fvVal.validate (self.fv.text ())
- if state == QValidator.Acceptable:
+ if state == TQValidator.Acceptable:
self.fvAccLed.on ()
- elif state == QValidator.Intermediate:
+ elif state == TQValidator.Intermediate:
self.fvInterLed.on ()
else:
self.fvInvalLed.on ()
@@ -170,9 +170,9 @@ class Page3:
state, i = self.dvVal.validate (self.dv.text ())
- if state == QValidator.Acceptable:
+ if state == TQValidator.Acceptable:
self.dvAccLed.on ()
- elif state == QValidator.Intermediate:
+ elif state == TQValidator.Intermediate:
self.dvInterLed.on ()
else:
self.dvInvalLed.on ()
@@ -184,7 +184,7 @@ class PageNotImpl:
x = 10
y = 10
- niLbl = QLabel ("Nothing is currently implemented for this widget", self.page)
+ niLbl = TQLabel ("Nothing is currently implemented for this widget", self.page)
niLbl.setGeometry (x, y, 300, 20)
niLbl.show ()
@@ -230,7 +230,7 @@ def miscKSystemTray (parent):
def miscKThemeBase (parent):
parent.currentPageObj = PageNotImpl (parent)
-def miscQXEmbed (parent):
+def miscTQXEmbed (parent):
parent.currentPageObj = PageNotImpl (parent)
if __name__ == "__main__":