|
|
|
@ -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
|
|
|
|
|