Changeset 3554fd39 in sasview
- Timestamp:
- Apr 20, 2011 11:09:09 AM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 56d940f
- Parents:
- 570cb96
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r570cb96 r3554fd39 662 662 self.SetToolBar(self._toolbar) 663 663 self._update_toolbar_helper() 664 #self._on_hide_toolbar(event=None)664 self._on_toggle_toolbar(event=None) 665 665 666 666 def _update_toolbar_helper(self): … … 787 787 style1 = self.__gui_style & GUIFRAME.TOOL_ON 788 788 if style1 == GUIFRAME.TOOL_ON: 789 self._toolbar_menu = self._view_menu.Append(id,'&Hide Toolbar', '') 790 else: 789 791 self._toolbar_menu = self._view_menu.Append(id,'&Show Toolbar', '') 790 else: 791 self._toolbar_menu = self._view_menu.Append(id,'&Hide Toolbar', '') 792 wx.EVT_MENU(self, id, self._on_hide_toolbar) 792 wx.EVT_MENU(self, id, self._on_toggle_toolbar) 793 793 self._menubar.Append(self._view_menu, '&View') 794 794 … … 987 987 988 988 989 def _on_ hide_toolbar(self, event=None):989 def _on_toggle_toolbar(self, event=None): 990 990 """ 991 991 hide or show toolbar … … 1036 1036 style = self.__gui_style & GUIFRAME.TOOL_ON 1037 1037 if (style == GUIFRAME.TOOL_ON) & (not self._toolbar.IsShown()): 1038 self._on_ hide_toolbar()1038 self._on_toggle_toolbar() 1039 1039 1040 1040 def show_welcome_panel(self, event): … … 1057 1057 if self._toolbar != None and not self._toolbar.IsShown(): 1058 1058 self._toolbar.Show(True) 1059 self._on_ hide_toolbar()1059 self._on_toggle_toolbar() 1060 1060 1061 1061 self._mgr.Update() … … 1468 1468 style = self.__gui_style & GUIFRAME.TOOL_ON 1469 1469 if (style == GUIFRAME.TOOL_ON) & (not self._toolbar.IsShown()): 1470 self._on_ hide_toolbar()1470 self._on_toggle_toolbar() 1471 1471 for item in self.panels: 1472 1472 # Check whether this is a sticky panel
Note: See TracChangeset
for help on using the changeset viewer.