graphics/GraphicCommons.py
changeset 880 781ced3c0aef
parent 878 37256069baed
child 887 d3c6c4ab8b28
--- a/graphics/GraphicCommons.py	Thu Nov 08 18:54:34 2012 +0100
+++ b/graphics/GraphicCommons.py	Tue Nov 13 11:36:04 2012 +0100
@@ -370,6 +370,9 @@
         self.DataConsumers = {}
     
     def ShouldRefresh(self):
+        wx.CallAfter(self._ShouldRefresh)
+        
+    def _ShouldRefresh(self):
         if DEBUG_REFRESH_LOCK.acquire(False):
             self.AccessLock.acquire()
             self.HasAcquiredLock = True