Changeset 9159cb9 in sasview for sansguiframe
- Timestamp:
- Apr 23, 2013 6:27:50 PM (12 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:
- 7aa1685
- Parents:
- 0e18d07
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
rf84e4c0 r9159cb9 1751 1751 1752 1752 """ 1753 ID = str(uid) 1754 config.printEVT("show_panel: %s" % ID) 1755 if ID in self.panels.keys(): 1756 if not self.panels[ID].frame.IsShown(): 1757 if show == 'on': 1758 self.panels[ID].frame.Show() 1759 elif self.panels[ID].window_caption.split(" ")[0] == \ 1760 "Residuals": 1761 self._mgr.GetPane(self.panels[ID].window_name).Hide() 1762 else: 1763 self._mgr.GetPane(self.panels[ID].window_name).Show() 1764 # Hide default panel 1765 self._mgr.GetPane(self.panels["default"].window_name).Hide() 1766 self._mgr.Update() 1767 self._redraw_idle() 1753 #Not implemeted 1754 return 1768 1755 1769 1756 def load_state(self, path, is_project=False): … … 1783 1770 else: 1784 1771 wx.PostEvent(self, StatusEvent(status=" ")) 1785 #if self.defaultPanel is not None and \1786 # self._mgr.GetPane(self.panels["default"].window_name).IsShown():1787 # self.on_close_welcome_panel()1788 1772 1789 1773 def load_data(self, path): … … 1910 1894 self._default_save_location = os.path.dirname(path) 1911 1895 dlg.Destroy() 1912 1913 #try:1914 # os.popen(path)1915 # #self.Close()1916 #except:1917 1896 1918 1897 self.load_state(path=path, is_project=True) … … 2871 2850 """ 2872 2851 # wx.aui.AuiPaneInfo 2873 pane_info = self.get_paneinfo( name)2852 pane_info = self.get_paneinfo(old_caption) 2874 2853 # update the data_panel.cb_plotpanel 2875 2854 if 'data_panel' in self.panels.keys(): … … 2906 2885 break 2907 2886 # New Caption 2908 pane_info.Caption(caption) 2909 # update aui manager 2910 self._mgr.Update() 2887 pane_info.SetTitle(caption) 2911 2888 return caption 2912 2889 … … 2918 2895 : return: AuiPaneInfo of the name 2919 2896 """ 2920 return None#self._mgr.GetPane(name) 2897 for panel in self.plot_panels.values(): 2898 if panel.frame.GetTitle() == name: 2899 return panel.frame 2900 return None 2921 2901 2922 2902 def enable_undo(self):
Note: See TracChangeset
for help on using the changeset viewer.