Changeset 7267776a in sasview for sansguiframe
- Timestamp:
- Apr 21, 2013 12:43:30 AM (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:
- e173956
- Parents:
- ba152f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
rba152f1 r7267776a 194 194 TIME_FACTOR = 2 195 195 NOT_SO_GRAPH_LIST = ["BoxSum"] 196 PARENT_STYLE = wx.DEFAULT_FRAME_STYLE 196 197 if sys.platform.count("darwin") > 0: 197 198 IS_WIN = False 198 199 TIME_FACTOR = 2 200 PARENT_STYLE = wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP 199 201 if int(str(wx.__version__).split('.')[0]) == 2: 200 202 if int(str(wx.__version__).split('.')[1]) < 9: … … 209 211 size=(GUIFRAME_WIDTH, GUIFRAME_HEIGHT), 210 212 gui_style=DEFAULT_STYLE, 211 style= wx.DEFAULT_FRAME_STYLE,213 style=PARENT_STYLE, 212 214 pos=wx.DefaultPosition): 213 215 """ … … 1053 1055 Hide()) 1054 1056 """ 1057 if not IS_WIN: 1058 x_pos, _ = frame.GetPositionTuple() 1059 _, y_size = self.GetSizeTuple() 1060 frame.SetPosition((x_pos, y_size)) 1055 1061 #if frame != None: 1056 1062 # frame.EnableCloseButton(False) 1063 if not IS_WIN: 1064 self.SetSize((self._window_width, 5)) 1057 1065 1058 1066 def update_data(self, prev_data, new_data): … … 3420 3428 posX = (displayWidth - customWidth)/2 3421 3429 posY = (displayHeight - customHeight)/2 3422 else:3423 customHeight = 803424 is_maximized = False3425 3430 # Return the suggested position and size for the application frame. 3426 3431 return (posX, posY), (customWidth, customHeight), is_maximized
Note: See TracChangeset
for help on using the changeset viewer.