changeset 1200 | 501cb0bb4c05 |
parent 1199 | fc0e7d80494f |
child 1209 | 953a8f14040a |
--- a/controls/DebugVariablePanel/GraphButton.py Thu May 30 13:23:21 2013 +0200 +++ b/controls/DebugVariablePanel/GraphButton.py Fri May 31 00:07:21 2013 +0200 @@ -106,7 +106,7 @@ @param enable: True if button is active in Graphic Viewer (default True) """ - self.Enabled = True + self.Enabled = enable def Disable(self): """ @@ -143,7 +143,7 @@ Call callback function if defined """ if self.Callback is not None: - wx.CallAfter(self.Callback) + self.Callback() def Draw(self, dc): """