diff options
Diffstat (limited to 'examples/uimodules/uimisc.py')
-rw-r--r-- | examples/uimodules/uimisc.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/uimodules/uimisc.py b/examples/uimodules/uimisc.py index 26129d1..a28f602 100644 --- a/examples/uimodules/uimisc.py +++ b/examples/uimodules/uimisc.py @@ -1,6 +1,6 @@ import os, time -from PyTQt.tqt import TQImage, TQLabel, TQPixmap, TQPushButton, SIGNAL, TQColor, TQValidator +from PyTQt.tqt import TQImage, TQLabel, TQPixmap, TQPushButton, TQ_SIGNAL, TQColor, TQValidator from tdeui import KMessageBox, KDateValidator, KFloatValidator, KIntValidator, KLineEdit, KLed @@ -24,7 +24,7 @@ class Page3: self.iv = KLineEdit (self.page) self.iv.setGeometry (x, y + 20, 100, 20) self.iv.show () - self.page.connect (self.iv, SIGNAL("textChanged (const TQString &)"), self.ivChanged) + self.page.connect (self.iv, TQ_SIGNAL("textChanged (const TQString &)"), self.ivChanged) self.ivVal = KIntValidator (self.page) self.ivVal.setRange (20, 50) @@ -61,7 +61,7 @@ class Page3: self.fv = KLineEdit (self.page) self.fv.setGeometry (x, y + 20, 100, 20) self.fv.show () - self.page.connect (self.fv, SIGNAL("textChanged (const TQString &)"), self.fvChanged) + self.page.connect (self.fv, TQ_SIGNAL("textChanged (const TQString &)"), self.fvChanged) self.fvVal = KFloatValidator (self.page) self.fvVal.setRange (10.0, 40.0) @@ -98,7 +98,7 @@ class Page3: self.dv = KLineEdit (self.page) self.dv.setGeometry (x, y + 20, 100, 20) self.dv.show () -# self.page.connect (self.dv, SIGNAL("textChanged (const TQString &)"), self.dvChanged) +# self.page.connect (self.dv, TQ_SIGNAL("textChanged (const TQString &)"), self.dvChanged) self.dvVal = KDateValidator (self.page) # self.dvVal.setRange (10.0, 40.0) @@ -110,7 +110,7 @@ class Page3: dvBtn = TQPushButton ("Validate", self.page) dvBtn.setGeometry (x, y + 45, 60, 22) dvBtn.show () - self.page.connect (dvBtn, SIGNAL ("clicked ()"), self.dvChanged) + self.page.connect (dvBtn, TQ_SIGNAL ("clicked ()"), self.dvChanged) dvNoteLbl = TQLabel ("Format is locale dependent\nShort date only\nTry DD-MM-YY", self.page) dvNoteLbl.setGeometry (x, y + 70, 150, 60) |