diff options
Diffstat (limited to 'examples/pytde-sampler')
24 files changed, 72 insertions, 72 deletions
diff --git a/examples/pytde-sampler/basic_widgets/datepicker.py b/examples/pytde-sampler/basic_widgets/datepicker.py index 467a96a..51571cb 100644 --- a/examples/pytde-sampler/basic_widgets/datepicker.py +++ b/examples/pytde-sampler/basic_widgets/datepicker.py @@ -1,4 +1,4 @@ -from PyTQt.tqt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL, TQLabel, TQSizePolicy, TQt +from PyTQt.tqt import TQFrame, TQStringList, TQVBoxLayout, TQ_SIGNAL, TQLabel, TQSizePolicy, TQt from PyTQt.tqttable import TQTable from tdeui import KTextEdit, KDatePicker, KDateWidget @@ -37,6 +37,6 @@ class MainFrame(TQFrame): layout.addWidget(self.other, 0) layout.addWidget(self.dateDisplay, 2) - self.connect(self.datePicker, SIGNAL('dateChanged(TQDate)'), + self.connect(self.datePicker, TQ_SIGNAL('dateChanged(TQDate)'), self.dateDisplay.setDate) diff --git a/examples/pytde-sampler/basic_widgets/historycombo.py b/examples/pytde-sampler/basic_widgets/historycombo.py index a43e8a9..8891235 100644 --- a/examples/pytde-sampler/basic_widgets/historycombo.py +++ b/examples/pytde-sampler/basic_widgets/historycombo.py @@ -1,5 +1,5 @@ from PyTQt.tqt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQStringList, TQLabel, \ - SIGNAL, SLOT + TQ_SIGNAL, TQ_SLOT from tdeui import KHistoryCombo, KTextEdit @@ -41,11 +41,11 @@ class MainFrame(TQFrame): layout.addWidget(self.historyCombo, 0) layout.addStretch(10) - self.connect(self.historyCombo, SIGNAL('activated(const TQString& )'), - self.historyCombo, SLOT('addToHistory(const TQString&)')) - self.connect(self.historyCombo, SIGNAL('cleared()'), + self.connect(self.historyCombo, TQ_SIGNAL('activated(const TQString& )'), + self.historyCombo, TQ_SLOT('addToHistory(const TQString&)')) + self.connect(self.historyCombo, TQ_SIGNAL('cleared()'), self.historyCleared) - self.connect(self.historyCombo, SIGNAL('activated(const TQString &)'), + self.connect(self.historyCombo, TQ_SIGNAL('activated(const TQString &)'), self.historySelection.setText) def historyCleared(self): 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')) diff --git a/examples/pytde-sampler/icon_handling/misc.py b/examples/pytde-sampler/icon_handling/misc.py index 4be12be..aef8e6e 100644 --- a/examples/pytde-sampler/icon_handling/misc.py +++ b/examples/pytde-sampler/icon_handling/misc.py @@ -3,7 +3,7 @@ iconName = 'icons' labelText = 'Misc.' -from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint +from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL, TQPoint from tdecore import i18n from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import KRootPermsIcon, KWritePermsIcon diff --git a/examples/pytde-sampler/icon_handling/sizes.py b/examples/pytde-sampler/icon_handling/sizes.py index f93fd94..4e3ead4 100644 --- a/examples/pytde-sampler/icon_handling/sizes.py +++ b/examples/pytde-sampler/icon_handling/sizes.py @@ -3,7 +3,7 @@ iconName = 'icons' labelText = 'Icon Sizing' -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 @@ -22,7 +22,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/misc/gradientselect.py b/examples/pytde-sampler/misc/gradientselect.py index 4b2ee9e..94f66e0 100644 --- a/examples/pytde-sampler/misc/gradientselect.py +++ b/examples/pytde-sampler/misc/gradientselect.py @@ -1,4 +1,4 @@ -from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQColor, TQSizePolicy, TQLabel +from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL, TQColor, TQSizePolicy, TQLabel from tdecore import i18n from tdeui import KPushButton, KGradientSelector, KTextEdit, KDualColorButton, KColorPatch @@ -38,11 +38,11 @@ class MainFrame(TQFrame): layout.addWidget(self.selector, 10) - self.connect(self.dualButton, SIGNAL('fgChanged(const TQColor &)'), + self.connect(self.dualButton, TQ_SIGNAL('fgChanged(const TQColor &)'), self.selector.setFirstColor) - self.connect(self.dualButton, SIGNAL('bgChanged(const TQColor &)'), + self.connect(self.dualButton, TQ_SIGNAL('bgChanged(const TQColor &)'), self.selector.setSecondColor) - self.connect(self.selector, SIGNAL('valueChanged(int)'), + self.connect(self.selector, TQ_SIGNAL('valueChanged(int)'), self.updateValue) diff --git a/examples/pytde-sampler/misc/passivepop.py b/examples/pytde-sampler/misc/passivepop.py index 316b69e..2704783 100644 --- a/examples/pytde-sampler/misc/passivepop.py +++ b/examples/pytde-sampler/misc/passivepop.py @@ -1,4 +1,4 @@ -from PyTQt.tqt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQLabel, SIGNAL +from PyTQt.tqt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQLabel, TQ_SIGNAL from tdeui import KPassivePopup, KTextEdit, KPushButton from tdecore import TDEGlobal, TDEIcon @@ -22,7 +22,7 @@ class MainFrame(TQFrame): layout.addStretch(10) - self.connect(self.button, SIGNAL('clicked()'), self.showPopups) + self.connect(self.button, TQ_SIGNAL('clicked()'), self.showPopups) def showPopups(self): diff --git a/examples/pytde-sampler/misc/window_info.py b/examples/pytde-sampler/misc/window_info.py index cf95afe..c222413 100644 --- a/examples/pytde-sampler/misc/window_info.py +++ b/examples/pytde-sampler/misc/window_info.py @@ -1,7 +1,7 @@ -from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL +from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL from tdeui import KWindowInfo, KPushButton, KTextEdit from tdecore import i18n, TDEApplication @@ -21,7 +21,7 @@ class MainFrame(TQFrame): buttonlayout.addWidget(self.button) buttonlayout.addStretch(1) layout.addStretch(1) - self.connect(self.button, SIGNAL('clicked()'), self.showWindowInfo) + self.connect(self.button, TQ_SIGNAL('clicked()'), self.showWindowInfo) def showWindowInfo(self): diff --git a/examples/pytde-sampler/qt_widgets/__init__.py b/examples/pytde-sampler/qt_widgets/__init__.py index 982bc9c..83a29b9 100644 --- a/examples/pytde-sampler/qt_widgets/__init__.py +++ b/examples/pytde-sampler/qt_widgets/__init__.py @@ -4,7 +4,7 @@ iconName = 'designer' helpText = """TQt provides a rich set of widgets for application use. Select the children of this item to see for yourself.""" -from PyTQt.tqt import TQFrame, TQVBoxLayout, SIGNAL +from PyTQt.tqt import TQFrame, TQVBoxLayout, TQ_SIGNAL from tdeui import KTextEdit diff --git a/examples/pytde-sampler/qt_widgets/table.py b/examples/pytde-sampler/qt_widgets/table.py index 0cdc4ab..bf12a9a 100644 --- a/examples/pytde-sampler/qt_widgets/table.py +++ b/examples/pytde-sampler/qt_widgets/table.py @@ -8,7 +8,7 @@ editable table widget.' import csv import os -from PyTQt.tqt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL +from PyTQt.tqt import TQFrame, TQStringList, TQVBoxLayout, TQ_SIGNAL from PyTQt.tqttable import TQTable from tdeui import KTextEdit diff --git a/examples/pytde-sampler/sampler.py b/examples/pytde-sampler/sampler.py index 8d04233..4567e04 100755 --- a/examples/pytde-sampler/sampler.py +++ b/examples/pytde-sampler/sampler.py @@ -10,7 +10,7 @@ import inspect import os import sys -from PyTQt.tqt import SIGNAL, SLOT, PYSIGNAL, TQt +from PyTQt.tqt import TQ_SIGNAL, TQ_SLOT, PYSIGNAL, TQt from PyTQt.tqt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog from PyTQt.tqt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton @@ -34,8 +34,8 @@ except (NameError, ): __file__ = sys.argv[0] -sigDoubleClicked = SIGNAL('doubleClicked(TQListViewItem *)') -sigViewItemSelected = SIGNAL('selectionChanged(TQListViewItem *)') +sigDoubleClicked = TQ_SIGNAL('doubleClicked(TQListViewItem *)') +sigViewItemSelected = TQ_SIGNAL('selectionChanged(TQListViewItem *)') sigSampleSelected = PYSIGNAL('sample selected') blank = KURL('about:blank') @@ -151,7 +151,7 @@ class WebFrame(CommonFrame): def __init__(self, parent): CommonFrame.__init__(self, parent) self.part = part = buildPart(self, 'text/html', "Type == 'Service'") - #part.connect(part, SIGNAL('tdehtmlMousePressEvent(a)'), self.onURL) + #part.connect(part, TQ_SIGNAL('tdehtmlMousePressEvent(a)'), self.onURL) def onURL(self, a): print('****', a) @@ -367,7 +367,7 @@ class SamplerMainWindow(TDEMainWindow): """ dlg = KEditToolbar(self.actionCollection(), self.xmlRcFileName) - self.connect(dlg, SIGNAL('newToolbarConfig()'), self.rebuildGui) + self.connect(dlg, TQ_SIGNAL('newToolbarConfig()'), self.rebuildGui) #connect(self, sigSampleSelected, self.sourceFrame.showModuleSource) dlg.exec_loop() |