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/sampler.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/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() |