diff options
author | Michele Calgaro <[email protected]> | 2024-01-10 10:12:35 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-11 10:03:49 +0900 |
commit | db88dbbdb24193c81d3b4b893553b78cddf32eb3 (patch) | |
tree | 392ed8ab9606ee7a8a67b201e84a8b4a9e8ddb5a /examples/pytde-sampler/dialogs/msgbox.py | |
parent | bab19cc2a24fceccebe4477c4af99a6a162ef998 (diff) | |
download | pytde-db88dbbdb24193c81d3b4b893553b78cddf32eb3.tar.gz pytde-db88dbbdb24193c81d3b4b893553b78cddf32eb3.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d94985267d6f224c5a9833736762f466d264374d)
Diffstat (limited to 'examples/pytde-sampler/dialogs/msgbox.py')
-rw-r--r-- | examples/pytde-sampler/dialogs/msgbox.py | 20 |
1 files changed, 10 insertions, 10 deletions
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) |