From d94985267d6f224c5a9833736762f466d264374d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 10 Jan 2024 10:12:35 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- examples/pytde-sampler/sampler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/pytde-sampler/sampler.py') 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() -- cgit v1.2.1