diff options
author | Michele Calgaro <[email protected]> | 2024-01-10 10:12:35 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-11 10:03:49 +0900 |
commit | db88dbbdb24193c81d3b4b893553b78cddf32eb3 (patch) | |
tree | 392ed8ab9606ee7a8a67b201e84a8b4a9e8ddb5a /examples/uimodules/uimisc.py | |
parent | bab19cc2a24fceccebe4477c4af99a6a162ef998 (diff) | |
download | pytde-db88dbbdb24193c81d3b4b893553b78cddf32eb3.tar.gz pytde-db88dbbdb24193c81d3b4b893553b78cddf32eb3.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d94985267d6f224c5a9833736762f466d264374d)
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) |