From db88dbbdb24193c81d3b4b893553b78cddf32eb3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 10 Jan 2024 10:12:35 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit d94985267d6f224c5a9833736762f466d264374d) --- examples/uimodules/uimisc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/uimodules/uimisc.py') 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) -- cgit v1.2.1