Changeset d785914 in sasview


Ignore:
Timestamp:
May 19, 2011 3:40:05 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

fix float panel

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    rc0a690c rd785914  
    114114                 size=(PANEL_WIDTH, PANEL_HEIGHT), 
    115115                 list_of_perspective=None, manager=None, *args, **kwds): 
    116         print "size", size 
    117116        kwds['size']= size 
    118117        kwds['style'] = STYLE_FLAG 
  • guiframe/gui_manager.py

    rd64dfd2 rd785914  
    770770            self._popup_floating_panel(p) 
    771771             
    772         pane = self._mgr.GetPane(windowname) 
    773         self._mgr.MaximizePane(pane) 
    774         self._mgr.RestoreMaximizedPane() 
    775772        # Register for showing/hiding the panel 
    776773        wx.EVT_MENU(self, ID, self.on_view) 
     
    787784                if caption not in self._data_panel.cb_plotpanel.GetItems(): 
    788785                    self._data_panel.cb_plotpanel.Append(str(caption), p) 
    789  
    790         self._mgr.Update() 
    791786        return ID 
    792787         
     
    19761971        make the plot panel floatable 
    19771972        """ 
     1973         
    19781974        self.__gui_style &= (~GUIFRAME.FIXED_PANEL) 
    19791975        self.__gui_style |= GUIFRAME.FLOATING_PANEL 
    1980         for p in self.panels.values(): 
     1976        plot_panel = [] 
     1977        if self._plotting_plugin is not None: 
    19811978            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) 
    19851981         
    19861982    def set_plotpanel_fixed(self, event=None): 
     
    19931989        if self._plotting_plugin is not None: 
    19941990            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) 
    19981993                     
    19991994    def _popup_fixed_panel(self, p): 
     
    20092004            self._mgr.GetPane(p.window_name).LeftDockable(False) 
    20102005            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) 
    20132006            self._mgr.Update() 
    20142007             
     
    20212014            self._mgr.GetPane(p.window_name).Float() 
    20222015            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) 
    20252016            self._mgr.Update() 
    20262017             
Note: See TracChangeset for help on using the changeset viewer.