Bug on Refresh Main Menu fixed
authorlbessard
Mon, 10 Dec 2007 23:15:23 +0100
changeset 339 473e29dcad25
parent 338 9ba9f4f7d080
child 340 60e1eb89455e
Bug on Refresh Main Menu fixed
objdictgen/networkedit.py
--- a/objdictgen/networkedit.py	Mon Dec 10 16:51:54 2007 +0100
+++ b/objdictgen/networkedit.py	Mon Dec 10 23:15:23 2007 +0100
@@ -404,8 +404,8 @@
         if selected >= 0:
             window = self.NetworkNodes.GetPage(selected)
             self.NodeList.SetCurrentSelected(window.GetIndex())
-        self.RefreshMainMenu()
-        self.RefreshStatusBar()
+        wx.CallAfter(self.RefreshMainMenu)
+        wx.CallAfter(self.RefreshStatusBar)
         event.Skip()
 
 #-------------------------------------------------------------------------------