Changeset 4520830 in sasview


Ignore:
Timestamp:
Jun 19, 2011 4:41:55 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:
5c3d2d3
Parents:
054c10a
Message:

removed close icon

Location:
guiframe
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    rb770c3d r4520830  
    121121    PLUGINS_WLIST = '' 
    122122APPLICATION_WLIST = config.APPLICATION_WLIST 
     123if sys.platform.count("darwin")==0: 
     124    IS_WIN = True 
     125else: 
     126    IS_WIN = False 
    123127     
    124128class ViewerFrame(wx.Frame): 
     
    622626                              Left(). 
    623627                              MinimizeButton(). 
    624                               CloseButton(True). 
     628                              CloseButton(IS_WIN). 
    625629                              TopDockable(False). 
    626630                              BottomDockable(False). 
  • guiframe/local_perspectives/plotting/Plotter1D.py

    rf6f125d r4520830  
    149149        self.x_size = self.GetSize() 
    150150        # Ready for another event 
    151         # Do not remove this Skip. Otherwise it will get runtime error. 
     151        # Do not remove this Skip. Otherwise it will get runtime error on wx>=2.9. 
    152152        event.Skip()  
    153153        # set the resizing flag 
  • guiframe/local_perspectives/plotting/plotting.py

    rb770c3d r4520830  
    2323DEFAULT_MENU_ITEM_LABEL = "No graph available" 
    2424DEFAULT_MENU_ITEM_ID = wx.NewId() 
     25 
     26if sys.platform.count("darwin")==0: 
     27    IS_WIN = True 
     28else: 
     29    IS_WIN = False 
    2530 
    2631class Plugin(PluginBase): 
     
    154159        self.menu.AppendCheckItem(event_id, new_panel.window_caption,  
    155160                         "Show %s plot panel" % new_panel.window_caption) 
    156         self.menu.Check(event_id, True) 
     161        self.menu.Check(event_id, IS_WIN) 
    157162        wx.EVT_MENU(self.parent, event_id, self._on_check_menu) 
    158163 
     
    303308        if self.menu.IsChecked(event_id): 
    304309            self.parent.on_view(event) 
    305             self.menu.Check(event_id, True) 
     310            self.menu.Check(event_id, IS_WIN) 
    306311        else: 
    307312            self.parent.hide_panel(event_id) 
Note: See TracChangeset for help on using the changeset viewer.