summaryrefslogtreecommitdiffstats
path: root/examples/pytde-sampler/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pytde-sampler/dialogs')
-rw-r--r--examples/pytde-sampler/dialogs/about/aboutapp.py4
-rw-r--r--examples/pytde-sampler/dialogs/about/abouttde.py4
-rw-r--r--examples/pytde-sampler/dialogs/bugreport.py4
-rw-r--r--examples/pytde-sampler/dialogs/color.py10
-rw-r--r--examples/pytde-sampler/dialogs/config.py4
-rw-r--r--examples/pytde-sampler/dialogs/edfind.py8
-rw-r--r--examples/pytde-sampler/dialogs/edreplace.py8
-rw-r--r--examples/pytde-sampler/dialogs/font.py4
-rw-r--r--examples/pytde-sampler/dialogs/input.py10
-rw-r--r--examples/pytde-sampler/dialogs/key.py4
-rw-r--r--examples/pytde-sampler/dialogs/msgbox.py20
-rw-r--r--examples/pytde-sampler/dialogs/passwd.py4
-rw-r--r--examples/pytde-sampler/dialogs/progress.py6
-rw-r--r--examples/pytde-sampler/dialogs/tip.py4
14 files changed, 47 insertions, 47 deletions
diff --git a/examples/pytde-sampler/dialogs/about/aboutapp.py b/examples/pytde-sampler/dialogs/about/aboutapp.py
index 737fe57..f5b6d38 100644
--- a/examples/pytde-sampler/dialogs/about/aboutapp.py
+++ b/examples/pytde-sampler/dialogs/about/aboutapp.py
@@ -1,7 +1,7 @@
iconName = 'about_kde'
labelText = 'TDEAboutApplication'
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL
from tdecore import i18n
from tdeui import TDEAboutApplication, KPushButton, KTextEdit
@@ -22,7 +22,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showAboutDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showAboutDialog)
def showAboutDialog(self):
dlg = TDEAboutApplication(self)
diff --git a/examples/pytde-sampler/dialogs/about/abouttde.py b/examples/pytde-sampler/dialogs/about/abouttde.py
index c48e83f..883a1bf 100644
--- a/examples/pytde-sampler/dialogs/about/abouttde.py
+++ b/examples/pytde-sampler/dialogs/about/abouttde.py
@@ -1,7 +1,7 @@
iconName = 'about_kde'
labelText = 'TDEAboutTDE'
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL
from tdecore import i18n
from tdeui import TDEAboutKDE, KPushButton, KTextEdit
@@ -21,7 +21,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showAboutDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showAboutDialog)
def showAboutDialog(self):
dlg = TDEAboutKDE(self)
diff --git a/examples/pytde-sampler/dialogs/bugreport.py b/examples/pytde-sampler/dialogs/bugreport.py
index 4d37a8c..9b35ccb 100644
--- a/examples/pytde-sampler/dialogs/bugreport.py
+++ b/examples/pytde-sampler/dialogs/bugreport.py
@@ -6,7 +6,7 @@ labelText = 'KBugReport'
##~ specifies what we want.
##~ docItemName = 'KBugReport'
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL
from tdecore import i18n
from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit
@@ -26,7 +26,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showBugDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showBugDialog)
def showBugDialog(self):
diff --git a/examples/pytde-sampler/dialogs/color.py b/examples/pytde-sampler/dialogs/color.py
index 8c87162..cf9cdd6 100644
--- a/examples/pytde-sampler/dialogs/color.py
+++ b/examples/pytde-sampler/dialogs/color.py
@@ -2,13 +2,13 @@ iconName = 'colorize'
labelText = 'KColorDialog'
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit
helpText = ("TDE provides a nifty common color selection dialog."
- "The color selection in the dialog is tracked via a SIGNAL "
+ "The color selection in the dialog is tracked via a TQ_SIGNAL "
"connected to the KColorPatch area below.")
@@ -25,18 +25,18 @@ class MainFrame(TQFrame):
buttonlayout.addStretch(1)
layout.addWidget(self.patch, 10)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showColorDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showColorDialog)
def showColorDialog(self):
dlg = KColorDialog(self)
## this connection is made so that there's a default color
- self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'),
+ self.connect(dlg, TQ_SIGNAL('colorSelected(const TQColor &)'),
self.patch.setPaletteBackgroundColor)
dlg.setColor(self.patch.paletteBackgroundColor())
## this connection is the one that changes the patch color to match
## the color selected in the dialog
- self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'),
+ self.connect(dlg, TQ_SIGNAL('colorSelected(const TQColor &)'),
self.patch.setColor)
dlg.exec_loop()
diff --git a/examples/pytde-sampler/dialogs/config.py b/examples/pytde-sampler/dialogs/config.py
index d086b28..da9ea42 100644
--- a/examples/pytde-sampler/dialogs/config.py
+++ b/examples/pytde-sampler/dialogs/config.py
@@ -1,5 +1,5 @@
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQString
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, TQ_SIGNAL, TQString
from tdecore import i18n, TDEConfigSkeleton
from tdeui import KPushButton, TDEConfigDialog, KTextEdit
@@ -33,7 +33,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showConfigDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showConfigDialog)
def showConfigDialog(self):
diff --git a/examples/pytde-sampler/dialogs/edfind.py b/examples/pytde-sampler/dialogs/edfind.py
index 5fa8155..777138f 100644
--- a/examples/pytde-sampler/dialogs/edfind.py
+++ b/examples/pytde-sampler/dialogs/edfind.py
@@ -1,5 +1,5 @@
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, TQ_SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, KEdFind, KTextEdit
@@ -21,14 +21,14 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showEdFind)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showEdFind)
def showEdFind(self):
dlg = self.dlg = KEdFind(self)
- self.connect(dlg, SIGNAL('done()'),
+ self.connect(dlg, TQ_SIGNAL('done()'),
self.doneClicked)
- self.connect(dlg, SIGNAL('search()'),
+ self.connect(dlg, TQ_SIGNAL('search()'),
self.searchClicked)
dlg.exec_loop()
diff --git a/examples/pytde-sampler/dialogs/edreplace.py b/examples/pytde-sampler/dialogs/edreplace.py
index 249ca42..07954fe 100644
--- a/examples/pytde-sampler/dialogs/edreplace.py
+++ b/examples/pytde-sampler/dialogs/edreplace.py
@@ -1,4 +1,4 @@
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, TQ_SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, KEdReplace, KTextEdit
@@ -20,14 +20,14 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showEdReplace)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showEdReplace)
def showEdReplace(self):
dlg = self.dlg = KEdReplace(self)
- self.connect(dlg, SIGNAL('done()'),
+ self.connect(dlg, TQ_SIGNAL('done()'),
self.doneClicked)
- self.connect(dlg, SIGNAL('replace()'),
+ self.connect(dlg, TQ_SIGNAL('replace()'),
self.replaceClicked)
dlg.exec_loop()
diff --git a/examples/pytde-sampler/dialogs/font.py b/examples/pytde-sampler/dialogs/font.py
index 7846eb6..b0a73c5 100644
--- a/examples/pytde-sampler/dialogs/font.py
+++ b/examples/pytde-sampler/dialogs/font.py
@@ -1,5 +1,5 @@
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, TQ_SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, TDEFontDialog, KTextEdit
@@ -41,7 +41,7 @@ class MainFrame(TQFrame):
buttonlayout.addStretch(1)
layout.addWidget(self.example, 10)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showFontDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showFontDialog)
def showFontDialog(self):
diff --git a/examples/pytde-sampler/dialogs/input.py b/examples/pytde-sampler/dialogs/input.py
index a297e37..7970a50 100644
--- a/examples/pytde-sampler/dialogs/input.py
+++ b/examples/pytde-sampler/dialogs/input.py
@@ -1,7 +1,7 @@
iconName = 'editclear'
labelText = 'KInputDialog'
-from PyTQt.tqt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
+from PyTQt.tqt import TQFrame, TQGridLayout, TQLabel, TQStringList, TQ_SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KInputDialog, KTextEdit
@@ -24,28 +24,28 @@ class MainFrame(TQFrame):
layout.addMultiCellWidget(self.help, 0, 1, 0, 1)
button = KPushButton(i18n('Get Text'), self)
- self.connect(button, SIGNAL('clicked()'), self.getText)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.getText)
self.getTextLabel = TQLabel('text value', self)
layout.addWidget(button, 2, 0)
layout.addWidget(self.getTextLabel, 2, 1)
layout.setRowStretch(2, 0)
button = KPushButton(i18n('Get Integer'), self)
- self.connect(button, SIGNAL('clicked()'), self.getInt)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.getInt)
self.getIntLabel = TQLabel('0', self)
layout.addWidget(self.getIntLabel, 3, 1)
layout.addWidget(button, 3, 0)
layout.setRowStretch(3, 0)
button = KPushButton(i18n('Get Double'), self)
- self.connect(button, SIGNAL('clicked()'), self.getDouble)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.getDouble)
self.getDoubleLabel = TQLabel('0.0', self)
layout.addWidget(self.getDoubleLabel, 4, 1)
layout.addWidget(button, 4, 0)
layout.setRowStretch(4, 0)
button = KPushButton(i18n('Get Item'), self)
- self.connect(button, SIGNAL('clicked()'), self.getItem)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.getItem)
self.getItemLabel = TQLabel(self.items[0], self)
layout.addWidget(button, 5, 0)
layout.addWidget(self.getItemLabel, 5, 1)
diff --git a/examples/pytde-sampler/dialogs/key.py b/examples/pytde-sampler/dialogs/key.py
index 487f5d9..fda7436 100644
--- a/examples/pytde-sampler/dialogs/key.py
+++ b/examples/pytde-sampler/dialogs/key.py
@@ -1,7 +1,7 @@
iconName = 'configure_shortcuts'
labelText = 'KKeyDialog'
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KKeyDialog, KTextEdit
@@ -22,7 +22,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showKeysDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showKeysDialog)
def showKeysDialog(self):
top = self.topLevelWidget()
diff --git a/examples/pytde-sampler/dialogs/msgbox.py b/examples/pytde-sampler/dialogs/msgbox.py
index 697dd3c..3b993bd 100644
--- a/examples/pytde-sampler/dialogs/msgbox.py
+++ b/examples/pytde-sampler/dialogs/msgbox.py
@@ -5,7 +5,7 @@ from random import random
from traceback import print_exc
from io import StringIO
-from PyTQt.tqt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
+from PyTQt.tqt import TQFrame, TQGridLayout, TQLabel, TQStringList, TQ_SIGNAL
from tdecore import i18n
from tdeui import KGuiItem, KPushButton, KMessageBox, KTextEdit
@@ -41,47 +41,47 @@ class MainFrame(TQFrame):
layout.addMultiCellWidget(self.help, 0, 1, 0, 1)
button = KPushButton(i18n('Question Yes-No'), self)
- self.connect(button, SIGNAL('clicked()'), self.questionYesNo)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.questionYesNo)
layout.addWidget(button, 2, 0)
layout.setRowStretch(2, 0)
button = KPushButton(i18n('Warning Yes-No-Cancel'), self)
- self.connect(button, SIGNAL('clicked()'), self.warningYesNoCancel)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.warningYesNoCancel)
layout.addWidget(button, 3, 0)
layout.setRowStretch(3, 0)
button = KPushButton(i18n('Warning Continue-Cancel-List'), self)
- self.connect(button, SIGNAL('clicked()'), self.warningContinueCancelList)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.warningContinueCancelList)
layout.addWidget(button, 4, 0)
layout.setRowStretch(4, 0)
button = KPushButton(i18n('Error'), self)
- self.connect(button, SIGNAL('clicked()'), self.error)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.error)
layout.addWidget(button, 5, 0)
layout.setRowStretch(5, 0)
button = KPushButton(i18n('Detailed Error'), self)
- self.connect(button, SIGNAL('clicked()'), self.detailedError)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.detailedError)
layout.addWidget(button, 6, 0)
layout.setRowStretch(6, 0)
button = KPushButton(i18n('Sorry'), self)
- self.connect(button, SIGNAL('clicked()'), self.sorry)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.sorry)
layout.addWidget(button, 7, 0)
layout.setRowStretch(7, 0)
button = KPushButton(i18n('Detailed Sorry'), self)
- self.connect(button, SIGNAL('clicked()'), self.detailedSorry)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.detailedSorry)
layout.addWidget(button, 8, 0)
layout.setRowStretch(8, 0)
button = KPushButton(i18n('Information'), self)
- self.connect(button, SIGNAL('clicked()'), self.information)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.information)
layout.addWidget(button, 9, 0)
layout.setRowStretch(9, 0)
button = KPushButton(i18n('Information List'), self)
- self.connect(button, SIGNAL('clicked()'), self.informationList)
+ self.connect(button, TQ_SIGNAL('clicked()'), self.informationList)
layout.addWidget(button, 10, 0)
layout.setRowStretch(10, 0)
diff --git a/examples/pytde-sampler/dialogs/passwd.py b/examples/pytde-sampler/dialogs/passwd.py
index 0508611..57354de 100644
--- a/examples/pytde-sampler/dialogs/passwd.py
+++ b/examples/pytde-sampler/dialogs/passwd.py
@@ -1,4 +1,4 @@
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KPasswordDialog, KTextEdit
@@ -22,7 +22,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showPasswordDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showPasswordDialog)
def showPasswordDialog(self):
diff --git a/examples/pytde-sampler/dialogs/progress.py b/examples/pytde-sampler/dialogs/progress.py
index 1f4ab4b..3ac1182 100644
--- a/examples/pytde-sampler/dialogs/progress.py
+++ b/examples/pytde-sampler/dialogs/progress.py
@@ -2,7 +2,7 @@ iconName = 'go'
labelText = 'KProgressDialog'
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, TQ_SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KProgressDialog, KTextEdit
@@ -22,7 +22,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showProgressDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showProgressDialog)
def showProgressDialog(self):
self.dlg = dlg = KProgressDialog(self, None, 'Sample Progress Dialog',
@@ -30,7 +30,7 @@ class MainFrame(TQFrame):
dlg.progressBar().setTotalSteps(20)
dlg.progressBar().setFormat('% complete: %p - value: %v - maximum: %m')
timer = TQTimer(self)
- self.connect(timer, SIGNAL('timeout()'), self.updateProgress)
+ self.connect(timer, TQ_SIGNAL('timeout()'), self.updateProgress)
timer.start(250, False)
dlg.exec_loop()
timer.stop()
diff --git a/examples/pytde-sampler/dialogs/tip.py b/examples/pytde-sampler/dialogs/tip.py
index b9e8b3d..9238327 100644
--- a/examples/pytde-sampler/dialogs/tip.py
+++ b/examples/pytde-sampler/dialogs/tip.py
@@ -3,7 +3,7 @@ labelText = 'KTipDialog'
import os
-from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
+from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL
from tdecore import i18n
from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit
@@ -22,7 +22,7 @@ class MainFrame(TQFrame):
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
- self.connect(self.button, SIGNAL('clicked()'), self.showTipDialog)
+ self.connect(self.button, TQ_SIGNAL('clicked()'), self.showTipDialog)
def showTipDialog(self):
filename = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tips'))