summaryrefslogtreecommitdiffstats
path: root/examples/uimodules/uidialogs.py
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-10 10:12:35 +0900
committerMichele Calgaro <[email protected]>2024-01-10 10:12:35 +0900
commitd94985267d6f224c5a9833736762f466d264374d (patch)
tree493b94e70d01d14903bf19aece4af02da401190c /examples/uimodules/uidialogs.py
parent36e3e3e1b3a8d802d926b424391e2cc9d3b19c20 (diff)
downloadpytde-d94985267d6f224c5a9833736762f466d264374d.tar.gz
pytde-d94985267d6f224c5a9833736762f466d264374d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'examples/uimodules/uidialogs.py')
-rw-r--r--examples/uimodules/uidialogs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/uimodules/uidialogs.py b/examples/uimodules/uidialogs.py
index 1c8e2b4..baedc0e 100644
--- a/examples/uimodules/uidialogs.py
+++ b/examples/uimodules/uidialogs.py
@@ -1,4 +1,4 @@
-from PyTQt.tqt import TQVBox, TQLabel, TQLineEdit, TQString, TQPixmap, TQPushButton, TQColor, SIGNAL, TQButtonGroup,\
+from PyTQt.tqt import TQVBox, TQLabel, TQLineEdit, TQString, TQPixmap, TQPushButton, TQColor, TQ_SIGNAL, TQButtonGroup,\
TQRadioButton, TQt, TQWidget
from tdecore import TDEAccel, i18n
@@ -46,9 +46,9 @@ class CustomDlg (KDialog):
self.okBtn.setGeometry (x, y, 40, 22)
self.canBtn.setGeometry (x + 50, y, 40, 22)
- self.connect (self.dlgBtn, SIGNAL ("clicked()"), self.dlgClicked)
- self.connect (self.okBtn, SIGNAL ("clicked ()"), self.okClicked)
- self.connect (self.canBtn, SIGNAL ("clicked ()"), self.cancelClicked)
+ self.connect (self.dlgBtn, TQ_SIGNAL ("clicked()"), self.dlgClicked)
+ self.connect (self.okBtn, TQ_SIGNAL ("clicked ()"), self.okClicked)
+ self.connect (self.canBtn, TQ_SIGNAL ("clicked ()"), self.cancelClicked)
def dlgClicked (self):
# get some (numerical) color values from the original dialog
@@ -93,7 +93,7 @@ class MessageDlg (KDialog):
for i in range (n):
TQRadioButton (buttons [i], grp)
- self.connect (grp, SIGNAL ("clicked (int)"), self.launch)
+ self.connect (grp, TQ_SIGNAL ("clicked (int)"), self.launch)
def launch (self, which):
if which == QuestionYesNo: