Changeset b770c3d in sasview


Ignore:
Timestamp:
Jun 19, 2011 1:04:50 PM (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:
66718a1
Parents:
d363bf4
Message:

removed mac specific operation of menu/panel closing; it works on wx 2.9.3/mac

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    rd363bf4 rb770c3d  
    121121    PLUGINS_WLIST = '' 
    122122APPLICATION_WLIST = config.APPLICATION_WLIST 
    123 if sys.platform.count("darwin")==0: 
    124     IS_WIN = True 
    125 else: 
    126     IS_WIN = False 
    127123     
    128124class ViewerFrame(wx.Frame): 
     
    626622                              Left(). 
    627623                              MinimizeButton(). 
    628                               CloseButton(True).#(IS_WIN). 
     624                              CloseButton(True). 
    629625                              TopDockable(False). 
    630626                              BottomDockable(False). 
  • guiframe/local_perspectives/plotting/plotting.py

    rd363bf4 rb770c3d  
    2323DEFAULT_MENU_ITEM_LABEL = "No graph available" 
    2424DEFAULT_MENU_ITEM_ID = wx.NewId() 
    25  
    26 if sys.platform.count("darwin")==0: 
    27     IS_WIN = True 
    28 else: 
    29     IS_WIN = False 
    3025 
    3126class Plugin(PluginBase): 
     
    159154        self.menu.AppendCheckItem(event_id, new_panel.window_caption,  
    160155                         "Show %s plot panel" % new_panel.window_caption) 
    161         self.menu.Check(event_id, True)#IS_WIN) 
     156        self.menu.Check(event_id, True) 
    162157        wx.EVT_MENU(self.parent, event_id, self._on_check_menu) 
    163158 
     
    308303        if self.menu.IsChecked(event_id): 
    309304            self.parent.on_view(event) 
    310             self.menu.Check(event_id, True)#IS_WIN) 
     305            self.menu.Check(event_id, True) 
    311306        else: 
    312307            self.parent.hide_panel(event_id) 
Note: See TracChangeset for help on using the changeset viewer.