Fix non-usable toolbar on wxPython with GTK3+ in PLCOpenEditor
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 29 Aug 2018 18:58:51 +0300
changeset 2302 69fefac5760e
parent 2301 5b8a7dd43f9f
child 2303 03ea6837a0b4
child 2304 68e6649039a5
child 2341 210cddfa16cf
Fix non-usable toolbar on wxPython with GTK3+ in PLCOpenEditor

this problem is related to 'Fix non-usable toolbar on wxPython with
GTK3+' (5927710b). This problem does not happen in Beremiz because
additional necessary self.AUIManager.Update() is called
BeremizIDE. Therefore minimal change in the mentioned commit was
enough for Beremiz, but is not enough for PLCOpenEditor.
IDEFrame.py
--- a/IDEFrame.py	Wed Aug 29 18:53:02 2018 +0300
+++ b/IDEFrame.py	Wed Aug 29 18:58:51 2018 +0300
@@ -2172,6 +2172,7 @@
                 self.AUIManager.GetPane("EditorToolBar").Show()
                 self.AUIManager.Update()
                 self.AUIManager.GetPane("EditorToolBar").BestSize(EditorToolBar.GetBestSize())
+                self.AUIManager.Update()
         elif menu is None:
             self.ResetEditorToolBar()
             self.CurrentMenu = menu