summaryrefslogtreecommitdiffstats
path: root/examples/uimodules/uiwidgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/uimodules/uiwidgets.py')
-rw-r--r--examples/uimodules/uiwidgets.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/uimodules/uiwidgets.py b/examples/uimodules/uiwidgets.py
index 1d7992f..69bd002 100644
--- a/examples/uimodules/uiwidgets.py
+++ b/examples/uimodules/uiwidgets.py
@@ -1,6 +1,6 @@
import time, sys
-from PyTQt.tqt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, \
+from PyTQt.tqt import TQLabel, TQFrame, TQColor, TQPushButton, TQ_SIGNAL, TQButtonGroup, TQRadioButton, \
TQt, TQString, TQChar, TQWidget, TQTimer
from tdecore import TDEApplication
@@ -43,9 +43,9 @@ class Page1:
replaceBtn.setGeometry (x + 90, y, 60, 22)
gotoBtn.setGeometry (x + 180, y, 60, 22)
- self.page.connect (searchBtn, SIGNAL ("clicked ()"), parent.edit.search)
- self.page.connect (replaceBtn, SIGNAL ("clicked ()"), parent.edit.replace)
- self.page.connect (gotoBtn, SIGNAL ("clicked ()"), parent.edit.doGotoLine)
+ self.page.connect (searchBtn, TQ_SIGNAL ("clicked ()"), parent.edit.search)
+ self.page.connect (replaceBtn, TQ_SIGNAL ("clicked ()"), parent.edit.replace)
+ self.page.connect (gotoBtn, TQ_SIGNAL ("clicked ()"), parent.edit.doGotoLine)
searchBtn.show ()
replaceBtn.show ()
@@ -106,7 +106,7 @@ class Page1:
for i in range (n):
TQRadioButton (buttons [i], grp)
- grp.connect (grp, SIGNAL ("clicked (int)"), self.restrict)
+ grp.connect (grp, TQ_SIGNAL ("clicked (int)"), self.restrict)
grp.find (0).setChecked (True)
self.restrict (0)
@@ -456,7 +456,7 @@ class Page6:
toggle.setGeometry (150, 400, 60, 22)
toggle.show ()
- self.page.connect (toggle, SIGNAL ("clicked ()"), self.toggleClicked)
+ self.page.connect (toggle, TQ_SIGNAL ("clicked ()"), self.toggleClicked)
self.page.show ()
@@ -608,7 +608,7 @@ class CSDlg (KDialog):
closeBtn.setGeometry ( 610, 280, 60, 22)
closeBtn.show ()
- self.connect (closeBtn, SIGNAL ("clicked ()"), self.closeClicked)
+ self.connect (closeBtn, TQ_SIGNAL ("clicked ()"), self.closeClicked)
def closeClicked (self):
self.done (1)