Changeset a36a22a in sasview
- Timestamp:
- Apr 21, 2013 8:53:20 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:
- a2f7fcc
- Parents:
- 7f79ea95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r7f79ea95 ra36a22a 198 198 IS_WIN = False 199 199 TIME_FACTOR = 2 200 PARENT_STYLE = wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP200 PARENT_STYLE = wx.DEFAULT_FRAME_STYLE #| wx.STAY_ON_TOP 201 201 if int(str(wx.__version__).split('.')[0]) == 2: 202 202 if int(str(wx.__version__).split('.')[1]) < 9: … … 979 979 frame = self.defaultPanel.get_frame() 980 980 frame.SetSize((self._window_width, self._window_height)) 981 if not IS_WIN: 982 x_pos, _ = frame.GetPositionTuple() 983 frame.SetPosition((x_pos, mac_pos_y + 75)) 981 984 frame.Show(True) 982 985 #add data panel … … 1017 1020 if not IS_WIN: 1018 1021 x_pos, _ = frame.GetPositionTuple() 1019 frame.SetPosition((x_pos, mac_pos_y + 50))1022 frame.SetPosition((x_pos, mac_pos_y + 75)) 1020 1023 1021 1024 if not IS_WIN: … … 1165 1168 p.frame.SetTitle(p.window_caption) 1166 1169 p.frame.name = p.window_name 1170 if not IS_WIN: 1171 p.frame.Center() 1167 1172 p.frame.Show(True) 1168 #if p not in self.schedule_full_draw_list: 1169 # self.schedule_full_draw_list.append(p) 1170 """ 1171 if style1 == GUIFRAME.FIXED_PANEL: 1172 self._mgr.AddPane(p, wx.aui.AuiPaneInfo(). 1173 Name(p.window_name). 1174 Caption(p.window_caption). 1175 Position(10). 1176 Floatable(). 1177 Right(). 1178 Dock(). 1179 MinimizeButton(True).MaximizeButton(True). 1180 Resizable(True). 1181 # Use a large best size to make sure the AUI 1182 # manager takes all the available space 1183 BestSize(wx.Size(p_panel_width, 1184 p_panel_height))) 1185 self._popup_fixed_panel(p) 1186 elif style2 == GUIFRAME.FLOATING_PANEL: 1187 self._mgr.AddPane(p, wx.aui.AuiPaneInfo(). 1188 Name(p.window_name).Caption(p.window_caption). 1189 MinimizeButton(True).MaximizeButton(True). 1190 Resizable(True). 1191 # Use a large best size to make sure the AUI 1192 # manager takes all the available space 1193 BestSize(wx.Size(p_panel_width, 1194 p_panel_height))) 1195 1196 self._popup_floating_panel(p) 1197 """ 1198 # Register for closing of panels 1199 #self.Bind(wx.aui.EVT_AUI_PANE_CLOSE, self.on_panel_close) 1173 1200 1174 # Register for showing/hiding the panel 1201 1175 wx.EVT_MENU(self, ID, self.on_view)
Note: See TracChangeset
for help on using the changeset viewer.