Changeset 4d7e5d5 in sasview
- Timestamp:
- Apr 5, 2014 6:03:12 AM (11 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:
- da6c9847
- Parents:
- 49d019c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/guiframe/gui_manager.py
r49d019c r4d7e5d5 1011 1011 d_panel_width, h = self._get_panels_size(self._data_panel) 1012 1012 win.SetSize((d_panel_width, h)) 1013 style = self.__gui_style & GUIFRAME.MANAGER_ON 1014 if style != GUIFRAME.MANAGER_ON: 1015 flag = False 1016 else: 1017 flag = True 1013 is_visible = self.__gui_style & GUIFRAME.MANAGER_ON == GUIFRAME.MANAGER_ON 1018 1014 if not IS_WIN: 1019 1015 win.SetPosition((0, mac_pos_y + size_t_bar)) 1020 win.Show( flag)1016 win.Show(is_visible) 1021 1017 # Add the panels to the AUI manager 1022 1018 for panel_class in panels: 1023 1019 frame = panel_class.get_frame() 1024 1020 id = wx.NewId() 1025 # Check whether we need to put this panel 1026 # in the center pane 1027 1021 # Check whether we need to put this panel in the center pane 1028 1022 if hasattr(panel_class, "CENTER_PANE") and panel_class.CENTER_PANE: 1029 1023 w, h = self._get_panels_size(panel_class) … … 1035 1029 frame.Show(False) 1036 1030 elif panel_class == self._data_panel: 1037 panel_class.frame.Show( flag)1031 panel_class.frame.Show(is_visible) 1038 1032 continue 1039 1033 else: … … 1042 1036 frame.Show(False) 1043 1037 if not IS_WIN: 1044 x_pos, _ = frame.GetPositionTuple()1045 1038 frame.SetPosition((d_panel_width + 1, mac_pos_y + size_t_bar)) 1046 1039
Note: See TracChangeset
for help on using the changeset viewer.