684 text, id, help, callback = infos |
684 text, id, help, callback = infos |
685 AppendMenu(menu, help='', id=id, kind=kind, text=text) |
685 AppendMenu(menu, help='', id=id, kind=kind, text=text) |
686 if callback is not None: |
686 if callback is not None: |
687 self.Bind(wx.EVT_MENU, callback, id=id) |
687 self.Bind(wx.EVT_MENU, callback, id=id) |
688 |
688 |
|
689 def RefreshEditorToolBar(self): |
|
690 IDEFrame.RefreshEditorToolBar(self) |
|
691 self.AUIManager.GetPane("EditorToolBar").Position(2) |
|
692 self.AUIManager.GetPane("StatusToolBar").Position(1) |
|
693 self.AUIManager.Update() |
|
694 |
689 def RefreshStatusToolBar(self): |
695 def RefreshStatusToolBar(self): |
690 StatusToolBar = self.Panes["StatusToolBar"] |
696 StatusToolBar = self.Panes["StatusToolBar"] |
691 StatusToolBar.ClearTools() |
697 StatusToolBar.ClearTools() |
692 |
698 |
693 if self.CTR is not None: |
699 if self.CTR is not None: |
702 |
708 |
703 StatusToolBar.Realize() |
709 StatusToolBar.Realize() |
704 self.AUIManager.GetPane("StatusToolBar").BestSize(StatusToolBar.GetBestSize()).Show() |
710 self.AUIManager.GetPane("StatusToolBar").BestSize(StatusToolBar.GetBestSize()).Show() |
705 else: |
711 else: |
706 self.AUIManager.GetPane("StatusToolBar").Hide() |
712 self.AUIManager.GetPane("StatusToolBar").Hide() |
707 self.AUIManager.GetPane("EditorToolBar").Position(1) |
713 self.AUIManager.GetPane("EditorToolBar").Position(2) |
708 self.AUIManager.GetPane("StatusToolBar").Position(1) |
714 self.AUIManager.GetPane("StatusToolBar").Position(1) |
709 self.AUIManager.Update() |
715 self.AUIManager.Update() |
710 |
716 |
711 def RefreshConfNodeMenu(self): |
717 def RefreshConfNodeMenu(self): |
712 if self.CTR is not None: |
718 if self.CTR is not None: |