diff options
author | Michele Calgaro <[email protected]> | 2024-01-10 10:12:35 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-10 10:12:35 +0900 |
commit | d94985267d6f224c5a9833736762f466d264374d (patch) | |
tree | 493b94e70d01d14903bf19aece4af02da401190c /examples/pytde-sampler/dialogs/input.py | |
parent | 36e3e3e1b3a8d802d926b424391e2cc9d3b19c20 (diff) | |
download | pytde-d94985267d6f224c5a9833736762f466d264374d.tar.gz pytde-d94985267d6f224c5a9833736762f466d264374d.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
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) |