Suppress WXDEBUG assertions, as happens by default with wx2.8. This is
necessary for wx3.0
Exception while connecting LOCAL://!
Traceback (most recent call last):
File "/home/beremiz/beremiz/ProjectController.py", line 1560, in _Connect
self._SetConnector(connectors.ConnectorFactory(uri, self))
File "/home/beremiz/beremiz/ProjectController.py", line 1508, in _SetConnector
self.StatusTimer.Start(milliseconds=500, oneShot=False)
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_misc.py", line 1324, in Start
return _misc_.Timer_Start(*args, **kwargs)
PyAssertionError: C++ assertion "m_window" failed at ../src/gtk/dcclient.cpp(2043) in DoGetSize(): GetSize() doesn't work without window
--- a/ProjectController.py Mon Apr 18 19:18:11 2016 +0300
+++ b/ProjectController.py Tue Apr 19 12:15:51 2016 +0300
@@ -1505,7 +1505,11 @@
if connector is not None:
if self.StatusTimer is not None:
# Start the status Timer
- self.StatusTimer.Start(milliseconds=500, oneShot=False)
+ # Suppress WXDEBUG assertions, as happens by default with wx2.8
+ try:
+ self.StatusTimer.Start(milliseconds=500, oneShot=False)
+ except:
+ pass
else:
if self.StatusTimer is not None:
# Stop the status Timer