- Timestamp:
- May 19, 2011 3:40:05 PM (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:
- accbb1b
- Parents:
- 7a8faf8
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_panel.py
rc0a690c rd785914 114 114 size=(PANEL_WIDTH, PANEL_HEIGHT), 115 115 list_of_perspective=None, manager=None, *args, **kwds): 116 print "size", size117 116 kwds['size']= size 118 117 kwds['style'] = STYLE_FLAG -
guiframe/gui_manager.py
rd64dfd2 rd785914 770 770 self._popup_floating_panel(p) 771 771 772 pane = self._mgr.GetPane(windowname)773 self._mgr.MaximizePane(pane)774 self._mgr.RestoreMaximizedPane()775 772 # Register for showing/hiding the panel 776 773 wx.EVT_MENU(self, ID, self.on_view) … … 787 784 if caption not in self._data_panel.cb_plotpanel.GetItems(): 788 785 self._data_panel.cb_plotpanel.Append(str(caption), p) 789 790 self._mgr.Update()791 786 return ID 792 787 … … 1976 1971 make the plot panel floatable 1977 1972 """ 1973 1978 1974 self.__gui_style &= (~GUIFRAME.FIXED_PANEL) 1979 1975 self.__gui_style |= GUIFRAME.FLOATING_PANEL 1980 for p in self.panels.values(): 1976 plot_panel = [] 1977 if self._plotting_plugin is not None: 1981 1978 plot_panel = self._plotting_plugin.plot_panels.values() 1982 for p in self.panels.values(): 1983 if p in plot_panel: 1984 self._popup_floating_panel(p) 1979 for p in plot_panel: 1980 self._popup_floating_panel(p) 1985 1981 1986 1982 def set_plotpanel_fixed(self, event=None): … … 1993 1989 if self._plotting_plugin is not None: 1994 1990 plot_panel = self._plotting_plugin.plot_panels.values() 1995 for p in self.panels.values(): 1996 if p in plot_panel: 1997 self._popup_fixed_panel(p) 1991 for p in plot_panel: 1992 self._popup_fixed_panel(p) 1998 1993 1999 1994 def _popup_fixed_panel(self, p): … … 2009 2004 self._mgr.GetPane(p.window_name).LeftDockable(False) 2010 2005 self._mgr.GetPane(p.window_name).RightDockable(True) 2011 flag = self._mgr.GetPane(p.window_name).IsShown()2012 self._mgr.GetPane(p.window_name).Show(flag)2013 2006 self._mgr.Update() 2014 2007 … … 2021 2014 self._mgr.GetPane(p.window_name).Float() 2022 2015 self._mgr.GetPane(p.window_name).Dockable(False) 2023 flag = self._mgr.GetPane(p.window_name).IsShown()2024 self._mgr.GetPane(p.window_name).Show(flag)2025 2016 self._mgr.Update() 2026 2017
Note: See TracChangeset
for help on using the changeset viewer.