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/color.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/color.py')
-rw-r--r-- | examples/pytde-sampler/dialogs/color.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/pytde-sampler/dialogs/color.py b/examples/pytde-sampler/dialogs/color.py index 8c87162..cf9cdd6 100644 --- a/examples/pytde-sampler/dialogs/color.py +++ b/examples/pytde-sampler/dialogs/color.py @@ -2,13 +2,13 @@ iconName = 'colorize' labelText = 'KColorDialog' -from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL +from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQ_SIGNAL from tdecore import i18n from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit helpText = ("TDE provides a nifty common color selection dialog." - "The color selection in the dialog is tracked via a SIGNAL " + "The color selection in the dialog is tracked via a TQ_SIGNAL " "connected to the KColorPatch area below.") @@ -25,18 +25,18 @@ class MainFrame(TQFrame): buttonlayout.addStretch(1) layout.addWidget(self.patch, 10) layout.addStretch(1) - self.connect(self.button, SIGNAL('clicked()'), self.showColorDialog) + self.connect(self.button, TQ_SIGNAL('clicked()'), self.showColorDialog) def showColorDialog(self): dlg = KColorDialog(self) ## this connection is made so that there's a default color - self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'), + self.connect(dlg, TQ_SIGNAL('colorSelected(const TQColor &)'), self.patch.setPaletteBackgroundColor) dlg.setColor(self.patch.paletteBackgroundColor()) ## this connection is the one that changes the patch color to match ## the color selected in the dialog - self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'), + self.connect(dlg, TQ_SIGNAL('colorSelected(const TQColor &)'), self.patch.setColor) dlg.exec_loop() |