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/sampler.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/sampler.py')
| -rwxr-xr-x | examples/pytde-sampler/sampler.py | 10 |
1 files changed, 5 insertions, 5 deletions
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() |
