Changeset e173956 in sasview
- Timestamp:
- Apr 21, 2013 9:24:43 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:
- af72b2e
- Parents:
- 7267776a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r7267776a re173956 217 217 """ 218 218 219 wx.MDIParentFrame.__init__(self, parent=parent, title=title, pos=pos, size=size) 219 wx.MDIParentFrame.__init__(self, parent=parent, title=title, pos=pos, 220 style=style, size=size) 220 221 # title 221 222 self.title = title … … 967 968 """ 968 969 # Look for plug-in panels 969 panels = [] 970 panels = [] 971 mac_pos_y = 40 970 972 for item in self.plugins: 971 973 if hasattr(item, "get_panels"): … … 1002 1004 w, h = self._get_panels_size(self._data_panel) 1003 1005 win = MDIFrame(self, None, 'None', (w,h)) 1006 win.EnableCloseButton(False) 1004 1007 self._data_panel = DataPanel(parent=win) 1005 1008 win.set_panel(self._data_panel) … … 1011 1014 else: 1012 1015 flag = True 1013 self._data_panel.frame.EnableCloseButton(False)1014 1016 win.Show(flag) 1015 1017 d_panel_width = w … … 1029 1031 frame.SetSize((w, h)) 1030 1032 frame.Show(False) 1031 """1032 self._mgr.AddPane(p, wx.aui.AuiPaneInfo().1033 Name(p.window_name).1034 CenterPane().1035 Center().1036 CloseButton(False).1037 Hide())1038 """1039 1033 else: 1040 1034 self.panels[str(id)] = panel_class 1041 1035 frame.SetSize((w, h)) 1042 1036 frame.Show(False) 1043 #win = MDIFrame(self, p, p.window_name, (w, h))1044 #win.set_panel(p)1045 """1046 self._mgr.AddPane(p, wx.aui.AuiPaneInfo().1047 Name(p.window_name).Caption(p.window_caption).1048 Right().1049 Dock().1050 TopDockable().1051 BottomDockable().1052 LeftDockable().1053 RightDockable().1054 MinimizeButton().1055 Hide())1056 """1057 1037 if not IS_WIN: 1058 1038 x_pos, _ = frame.GetPositionTuple() 1059 _, y_size = self.GetSizeTuple() 1060 frame.SetPosition((x_pos, y_size)) 1061 #if frame != None: 1062 # frame.EnableCloseButton(False) 1039 frame.SetPosition((x_pos, mac_pos_y)) 1040 1063 1041 if not IS_WIN: 1064 self.SetSize((self._window_width, 5))1042 self.SetSize((self._window_width, 40)) 1065 1043 1066 1044 def update_data(self, prev_data, new_data):
Note: See TracChangeset
for help on using the changeset viewer.