Changeset 56acb5d in sasview for sansguiframe/src/sans


Ignore:
Timestamp:
May 4, 2012 9:10:52 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
bf0acea
Parents:
316e231
Message:

fixed recovering menu problem after maximize/restore size p_panel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    rdd4344a r56acb5d  
    10461046        for ID in self.plot_panels.keys(): 
    10471047            if self.plot_panels[ID].window_name == panel.name: 
     1048                self.disable_app_menu(self.plot_panels[ID]) 
    10481049                self.delete_panel(ID) 
    10491050                break 
     1051        self.cpanel_on_focus.SetFocus() 
    10501052     
    10511053     
     
    17531755        config.printEVT("hide_panel: %s" % ID) 
    17541756        if ID in self.panels.keys(): 
    1755             if self._mgr.GetPane(self.panels[ID].window_name).IsShown(): 
    1756                 self._mgr.GetPane(self.panels[ID].window_name).Hide() 
     1757            pane = self._mgr.GetPane(self.panels[ID].window_name) 
     1758            if pane.IsMaximized(): 
     1759                self._mgr.RestoreMaximizedPane() 
     1760                self.disable_app_menu(self.panels[ID]) 
     1761            if pane.IsShown(): 
     1762                pane.Hide() 
    17571763                item = self._plotting_plugin.menu.FindItemById(uid) 
    17581764                item.Check(False) 
     
    17621768                # Do not Hide default panel here... 
    17631769                #self._mgr.GetPane(self.panels["default"].window_name).Hide() 
    1764             self._mgr.Update() 
     1770            wx.CallAfter(self._mgr.Update) 
     1771            self.cpanel_on_focus.SetFocus() 
    17651772                 
    17661773    def delete_panel(self, uid): 
Note: See TracChangeset for help on using the changeset viewer.