From 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 8 Jan 2024 11:54:27 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- examples/tut6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/tut6.py') diff --git a/examples/tut6.py b/examples/tut6.py index 7c6c682..e7a57e3 100755 --- a/examples/tut6.py +++ b/examples/tut6.py @@ -14,7 +14,7 @@ class LCDRange(tqt.TQVBox): slider = tqt.TQSlider(tqt.TQt.Horizontal, self, "slider") slider.setRange(0, 99) slider.setValue(0) - self.connect(slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(slider, tqt.TQ_SIGNAL("valueChanged(int)"), lcd, tqt.TQ_SLOT("display(int)")) class MyWidget(tqt.TQVBox): @@ -24,7 +24,7 @@ class MyWidget(tqt.TQVBox): quit = tqt.TQPushButton("Quit", self, "quit") quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) - self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) + self.connect(quit, tqt.TQ_SIGNAL("clicked()"), tqt.tqApp, tqt.TQ_SLOT("quit()")) grid = tqt.TQGrid(4, self) -- cgit v1.2.3