- Timestamp:
- Apr 28, 2011 12:21:55 PM (14 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:
- 468d2a96
- Parents:
- 8b481a51
- Location:
- guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/config.py
r8500e2c rea4dfe0 60 60 SPLASH_SCREEN_HEIGHT = 300 61 61 SS_MAX_DISPLAY_TIME = 3000 #3 sec 62 PLOPANEL_WIDTH = 40063 PLOPANEL_HEIGTH = 40062 PLOPANEL_WIDTH = 350 63 PLOPANEL_HEIGTH = 350 64 64 GUIFRAME_WIDTH = 1000 65 65 GUIFRAME_HEIGHT = 800 -
guiframe/data_panel.py
r83a75c5 rea4dfe0 44 44 EXTENSIONS = config.PLUGIN_STATE_EXTENSIONS + extension_list 45 45 46 PANEL_WIDTH = 180 47 #PANEL_HEIGHT = 560 46 PANEL_WIDTH = 250 48 47 PANEL_HEIGHT = 700 48 CBOX_WIDTH = 140 49 49 STYLE_FLAG =wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 50 50 wx.WANTS_CHARS|CT.TR_HAS_VARIABLE_ROW_HEIGHT … … 91 91 def __init__(self, parent, 92 92 list=None, 93 list_of_perspective=None, 94 size=(PANEL_WIDTH,PANEL_HEIGHT), manager=None, *args, **kwds): 93 size=(PANEL_WIDTH, PANEL_HEIGHT), 94 list_of_perspective=None, manager=None, *args, **kwds): 95 95 96 kwds['size']= size 96 97 kwds['style'] = STYLE_FLAG … … 287 288 Layout widgets related to buttons 288 289 """ 290 w, _ = self.GetSize() 289 291 self.bt_add = wx.Button(self, wx.NewId(), "Load Data") 290 292 self.bt_add.SetToolTipString("Add data from the application") … … 296 298 self.bt_import.SetToolTipString("Send set of Data to active perspective") 297 299 wx.EVT_BUTTON(self, self.bt_import.GetId(), self.on_import) 298 self.perspective_cbox = wx.ComboBox(self, -1, 300 self.perspective_cbox = wx.ComboBox(self, -1, size=(CBOX_WIDTH, -1), 299 301 style=wx.CB_READONLY) 300 302 wx.EVT_COMBOBOX(self.perspective_cbox,-1, … … 319 321 #self.tctrl_perspective.SetFont(perspective_font) 320 322 #self.tctrl_perspective.SetClientSize((80,20)) 321 self.cb_plotpanel = wx.ComboBox(self, -1, 323 324 self.cb_plotpanel = wx.ComboBox(self, -1, size=(CBOX_WIDTH, -1), 322 325 style=wx.CB_READONLY|wx.CB_SORT) 323 326 wx.EVT_COMBOBOX(self.cb_plotpanel,-1, self._on_plot_selection) … … 934 937 else: 935 938 self.bt_plot.Enable() 936 if not self.at_least_on_check: 937 self.bt_plot.Disable() 938 else: 939 self.bt_append_plot.Enable() 940 self.bt_plot.Enable() 939 941 940 942 941 def enable_append(self): … … 1012 1011 ALWAYS_ON = True 1013 1012 1014 def __init__(self, parent=None, owner=None, manager=None,size=( 200, 800),1013 def __init__(self, parent=None, owner=None, manager=None,size=(300, 800), 1015 1014 list_of_perspective=[],list=[], *args, **kwds): 1016 1015 kwds['size'] = size -
guiframe/gui_manager.py
r83a75c5 rea4dfe0 63 63 GUIFRAME_WIDTH = config.GUIFRAME_WIDTH 64 64 GUIFRAME_HEIGHT = config.GUIFRAME_HEIGHT 65 DATAPANEL_WIDTH = 250 65 66 PLUGIN_STATE_EXTENSIONS = config.PLUGIN_STATE_EXTENSIONS 66 67 extension_list = [] … … 429 430 style = self.__gui_style & (GUIFRAME.MANAGER_ON) 430 431 if self._data_panel is not None and (p == self._data_panel): 431 panel_width_min = self._window_width * 4/25432 panel_width_min = DATAPANEL_WIDTH 432 433 panel_height_min = self._window_height * 0.8 433 434 return panel_width_min, panel_height_min … … 435 436 style = self.__gui_style & (GUIFRAME.PLOTTING_ON|GUIFRAME.MANAGER_ON) 436 437 if style == (GUIFRAME.PLOTTING_ON|GUIFRAME.MANAGER_ON): 437 panel_width_min = self._window_width * 15/25 438 panel_width_min = self._window_width -\ 439 (DATAPANEL_WIDTH +config.PLOPANEL_WIDTH) 438 440 return panel_width_min, panel_height_min 439 441 return panel_width_min, panel_height_min … … 505 507 self._mgr.AddPane(p, wx.aui.AuiPaneInfo(). 506 508 Name(p.window_name). 507 Caption(p.window_caption). 508 #CenterPane(). 509 CenterPane(). 509 510 Center(). 510 511 CloseButton(False). 511 #MinimizeButton(False).512 #BestSize(wx.Size(w, h)).513 512 Hide()) 514 513 else: … … 622 621 BestSize(wx.Size(PLOPANEL_WIDTH, 623 622 PLOPANEL_HEIGTH))) 624 #MinSize(wx.Size(PLOPANEL_WIDTH*0.9, 625 # PLOPANEL_HEIGTH))) 623 626 624 self._popup_fixed_panel(p) 627 625 … … 2135 2133 self.panel_on_focus = panel 2136 2134 self.set_panel_on_focus(None) 2135 print " on_set_plot_focus" 2137 2136 2138 2137 def _onDrawIdle(self, *args, **kwargs):
Note: See TracChangeset
for help on using the changeset viewer.