Changeset c91ef7e in sasview
- Timestamp:
- May 10, 2011 5:06:37 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:
- ad1e49c
- Parents:
- 25c1576
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r0c26793 rc91ef7e 74 74 PLUGINS_WLIST = '' 75 75 APPLICATION_WLIST = config.APPLICATION_WLIST 76 76 if sys.platform.count("darwin")==0: 77 IS_WIN = True 78 else: 79 IS_WIN = False 80 77 81 class ViewerFrame(wx.Frame): 78 82 """ … … 503 507 Left(). 504 508 MinimizeButton(). 505 CloseButton( True).509 CloseButton(IS_WIN). 506 510 TopDockable(False). 507 511 BottomDockable(False). -
guiframe/local_perspectives/plotting/plotting.py
r25c1576 rc91ef7e 24 24 25 25 if sys.platform.count("darwin")==0: 26 IS_ MAC = False26 IS_WIN = True 27 27 else: 28 IS_ MAC = True28 IS_WIN = False 29 29 30 30 class Plugin(PluginBase): … … 158 158 self.menu.AppendCheckItem(event_id, new_panel.window_caption, 159 159 "Show %s plot panel" % new_panel.window_caption) 160 self.menu.Check(event_id, True)160 self.menu.Check(event_id, IS_WIN) 161 161 wx.EVT_MENU(self.parent, event_id, self._on_check_menu) 162 163 if IS_MAC: 164 wx.EVT_CLOSE(new_panel, self._on_close_panel) 165 else: 166 wx.EVT_SHOW(new_panel, self._on_close_panel) 162 163 wx.EVT_SHOW(new_panel, self._on_close_panel) 167 164 168 165 # Set UID to allow us to reference the panel later … … 305 302 if self.menu.IsChecked(event_id): 306 303 self.parent.on_view(event) 307 self.menu.Check(event_id, True)304 self.menu.Check(event_id, IS_WIN) 308 305 else: 309 306 self.parent.hide_panel(event_id)
Note: See TracChangeset
for help on using the changeset viewer.