summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-11 17:31:11 +0900
committerMichele Calgaro <[email protected]>2023-07-11 17:31:11 +0900
commitcba162755d7b1b72e68d1fb3906df621b9f001cc (patch)
tree1ed3f231e10a3465ce6c0175f2de6aefea9725ac
parent8bd235befadd16da9e1a128de43157127c0e7fd1 (diff)
downloadpytqt-cba162755d7b1b72e68d1fb3906df621b9f001cc.tar.gz
pytqt-cba162755d7b1b72e68d1fb3906df621b9f001cc.zip
Drop compatibility code for TQThread
Signed-off-by: Michele Calgaro <[email protected]>
-rwxr-xr-xexamples/semaphore.py8
-rw-r--r--sip/tqt/tqthread.sip1
2 files changed, 4 insertions, 5 deletions
diff --git a/examples/semaphore.py b/examples/semaphore.py
index 99b9bc6..7988e6c 100755
--- a/examples/semaphore.py
+++ b/examples/semaphore.py
@@ -36,7 +36,7 @@ class YellowThread(TQThread):
event = TQCustomEvent(12345)
event.setData(TQString("Yellow!"))
- TQThread.postEvent(self.receiver,event)
+ TQApplication.postEvent(self.receiver,event)
self.msleep(200);
greenSem -= 1
@@ -53,7 +53,7 @@ class YellowThread(TQThread):
event = TQCustomEvent(12346)
event.setData(TQString("Yellow!"))
- TQThread.postEvent(self.receiver,event)
+ TQApplication.postEvent(self.receiver,event)
greenSem -= 1
@@ -79,7 +79,7 @@ class GreenThread(TQThread):
event = TQCustomEvent(12345)
event.setData(TQString("Green!"))
- TQThread.postEvent(self.receiver,event)
+ TQApplication.postEvent(self.receiver,event)
self.msleep(200)
yellowSem -= 1
@@ -96,7 +96,7 @@ class GreenThread(TQThread):
event = TQCustomEvent(12346)
event.setData(TQString("Green!"))
- TQThread.postEvent(self.receiver,event)
+ TQApplication.postEvent(self.receiver,event)
self.msleep(10)
yellowSem -= 1
diff --git a/sip/tqt/tqthread.sip b/sip/tqt/tqthread.sip
index b95301a..8530bcd 100644
--- a/sip/tqt/tqthread.sip
+++ b/sip/tqt/tqthread.sip
@@ -39,7 +39,6 @@ class TQThread : TQt /CreatesThread/
public:
static TQt::HANDLE currentThread();
- static void postEvent(TQObject *,TQEvent * /Transfer/) /ReleaseGIL/;
static void initialize();
static void cleanup();