Changeset d0923a3 in sasview for sansguiframe/src
- Timestamp:
- Apr 25, 2013 4:16:58 PM (12 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:
- 523f828
- Parents:
- 8833c77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r8833c77 rd0923a3 194 194 CLOSE_SHOW = True 195 195 TIME_FACTOR = 2 196 MDI_STYLE = wx.DEFAULT_FRAME_STYLE 196 197 NOT_SO_GRAPH_LIST = ["BoxSum"] 197 if sys.platform.count("darwin") > 0: 198 PARENT_FRAME = wx.MDIParentFrame 199 CHILD_FRAME = wx.MDIChildFrame 200 if sys.platform.count("win32") < 1: 198 201 IS_WIN = False 199 202 TIME_FACTOR = 2 … … 201 204 if int(str(wx.__version__).split('.')[1]) < 9: 202 205 CLOSE_SHOW = False 203 204 class ViewerFrame(wx.MDIParentFrame): 206 if sys.platform.count("darwin") < 1: 207 PARENT_FRAME = wx.Frame 208 CHILD_FRAME = wx.Frame 209 210 class ViewerFrame(PARENT_FRAME): 205 211 """ 206 212 Main application frame … … 216 222 """ 217 223 218 wx.MDIParentFrame.__init__(self, parent=parent, title=title, pos=pos, size=size)224 PARENT_FRAME.__init__(self, parent=parent, title=title, pos=pos, size=size) 219 225 # title 220 226 self.title = title … … 1176 1182 p.window_name = windowname + str(self.graph_num) 1177 1183 1178 style1 = self.__gui_style & GUIFRAME.FIXED_PANEL1179 style2 = self.__gui_style & GUIFRAME.FLOATING_PANEL1184 #style1 = self.__gui_style & GUIFRAME.FIXED_PANEL 1185 #style2 = self.__gui_style & GUIFRAME.FLOATING_PANEL 1180 1186 1181 1187 p.frame.SetTitle(p.window_caption) … … 3406 3412 3407 3413 3408 class MDIFrame( wx.MDIChildFrame):3414 class MDIFrame(CHILD_FRAME): 3409 3415 """ 3410 3416 Frame for panels … … 3418 3424 kwds['size']= size 3419 3425 kwds['title']= title 3426 kwds['style'] = MDI_STYLE 3420 3427 # Initialize the Frame object 3421 wx.MDIChildFrame.__init__(self, parent, *args, **kwds)3428 CHILD_FRAME.__init__(self, parent, *args, **kwds) 3422 3429 self.parent = parent 3423 3430 self.name = "Untitled"
Note: See TracChangeset
for help on using the changeset viewer.