Changeset 523f828 in sasview for sansguiframe/src
- Timestamp:
- Apr 25, 2013 6:32:50 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:
- 7c38c90
- Parents:
- d0923a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
rd0923a3 r523f828 192 192 APPLICATION_WLIST = config.APPLICATION_WLIST 193 193 IS_WIN = True 194 IS_LINUX = False 194 195 CLOSE_SHOW = True 195 196 TIME_FACTOR = 2 … … 205 206 CLOSE_SHOW = False 206 207 if sys.platform.count("darwin") < 1: 208 IS_LINUX = True 207 209 PARENT_FRAME = wx.Frame 208 210 CHILD_FRAME = wx.Frame … … 989 991 frame = self.defaultPanel.get_frame() 990 992 frame.SetSize((self._window_width, self._window_height)) 993 size_t_bar = 70 991 994 if not IS_WIN: 992 995 x_pos, _ = frame.GetPositionTuple() 993 frame.SetPosition((x_pos, mac_pos_y + 70)) 996 if IS_LINUX: 997 size_t_bar = 115 998 frame.SetPosition((x_pos, mac_pos_y + size_t_bar)) 994 999 frame.Show(True) 995 1000 #add data panel … … 1012 1017 if not IS_WIN: 1013 1018 x_pos, _ = win.GetPositionTuple() 1014 win.SetPosition((x_pos, mac_pos_y + 70))1019 win.SetPosition((x_pos, mac_pos_y + size_t_bar)) 1015 1020 win.Show(flag) 1016 1021 d_panel_width = w … … 1039 1044 if not IS_WIN: 1040 1045 x_pos, _ = frame.GetPositionTuple() 1041 frame.SetPosition((x_pos, mac_pos_y + 70))1046 frame.SetPosition((x_pos, mac_pos_y + size_t_bar)) 1042 1047 1043 1048 if not IS_WIN: 1044 self.SetSize((self._window_width, mac_pos_y)) 1049 win_height = mac_pos_y 1050 if IS_LINUX: 1051 win_height = mac_pos_y + 55 1052 self.SetSize((self._window_width, win_height)) 1045 1053 1046 1054 def update_data(self, prev_data, new_data): … … 3010 3018 size_y = 0 3011 3019 if self.GetToolBar() != None and self.GetToolBar().IsShown(): 3012 _, size_y = self.GetToolBar().GetSizeTuple() 3020 if not IS_LINUX: 3021 _, size_y = self.GetToolBar().GetSizeTuple() 3013 3022 return size_y 3014 3023
Note: See TracChangeset
for help on using the changeset viewer.