beremiz

Parents ef221ba41dec
Children 36e823a90d94
Fix bug in reorganization of toolbars after refreshing them
  • +7 -1
    Beremiz.py
  • --- a/Beremiz.py Sun Jun 10 20:20:09 2012 +0200
    +++ b/Beremiz.py Mon Jun 11 01:22:20 2012 +0200
    @@ -686,6 +686,12 @@
    if callback is not None:
    self.Bind(wx.EVT_MENU, callback, id=id)
    + def RefreshEditorToolBar(self):
    + IDEFrame.RefreshEditorToolBar(self)
    + self.AUIManager.GetPane("EditorToolBar").Position(2)
    + self.AUIManager.GetPane("StatusToolBar").Position(1)
    + self.AUIManager.Update()
    +
    def RefreshStatusToolBar(self):
    StatusToolBar = self.Panes["StatusToolBar"]
    StatusToolBar.ClearTools()
    @@ -704,7 +710,7 @@
    self.AUIManager.GetPane("StatusToolBar").BestSize(StatusToolBar.GetBestSize()).Show()
    else:
    self.AUIManager.GetPane("StatusToolBar").Hide()
    - self.AUIManager.GetPane("EditorToolBar").Position(1)
    + self.AUIManager.GetPane("EditorToolBar").Position(2)
    self.AUIManager.GetPane("StatusToolBar").Position(1)
    self.AUIManager.Update()