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