Changeset 7d90e55 in sasview for sansguiframe/src
- Timestamp:
- Apr 21, 2013 1:33:13 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:
- 31ac4a1
- Parents:
- cb6a2b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
rcb6a2b7 r7d90e55 988 988 win = MDIFrame(self, None, 'None', (100, 200)) 989 989 #win.EnableCloseButton(False) 990 self._data_panel = DataPanel(parent=win) 991 win.set_panel(self._data_panel) 992 self._data_panel.set_frame(win) 993 self.panels["data_panel"] = self._data_panel 990 data_panel = DataPanel(parent=win, id=-1) 991 win.set_panel(data_panel) 992 data_panel.set_frame(win) 993 self.panels["data_panel"] = data_panel 994 self._data_panel = data_panel 995 frame = self._data_panel.get_frame() 994 996 w, h = self._get_panels_size(self._data_panel) 995 win.SetSize((w, h))997 frame.SetSize((w, h)) 996 998 style = self.__gui_style & GUIFRAME.MANAGER_ON 997 999 if style != GUIFRAME.MANAGER_ON: … … 1001 1003 if not IS_WIN: 1002 1004 x_pos, _ = win.GetPositionTuple() 1003 win.SetPosition((x_pos, mac_pos_y + 70))1004 win.Show(flag)1005 frame.SetPosition((x_pos, mac_pos_y + 70)) 1006 frame.Show(flag) 1005 1007 d_panel_width = w 1006 1008 # Add the panels to the AUI manager … … 1019 1021 frame.SetSize((w, h)) 1020 1022 frame.Show(False) 1023 elif panel_class == self._data_panel: 1024 continue 1021 1025 else: 1022 1026 self.panels[str(id)] = panel_class
Note: See TracChangeset
for help on using the changeset viewer.