--- a/Beremiz_service.py Wed May 23 10:53:57 2018 +0200
+++ b/Beremiz_service.py Mon Jun 04 11:22:08 2018 +0200
@@ -510,7 +510,7 @@
wx_eval_lock = Semaphore(0)
- main_thread = currentThread()
+ # main_thread = currentThread() def statuschangeTskBar(status):
wx.CallAfter(taskbar_instance.UpdateIcon, status)
@@ -523,14 +523,14 @@
def evaluator(tocall, *args, **kwargs):
- if main_thread == currentThread():
- # avoid dead lock if called from the wx mainloop
- return default_evaluator(tocall, *args, **kwargs)
- o = type('', (object,), dict(call=(tocall, args, kwargs), res=None))
- wx.CallAfter(wx_evaluator, o)
+ # if main_thread == currentThread(): + # # avoid dead lock if called from the wx mainloop + # return default_evaluator(tocall, *args, **kwargs) + o = type('', (object,), dict(call=(tocall, args, kwargs), res=None)) + wx.CallAfter(wx_evaluator, o) pyroserver = Server(servicename, given_ip, port,