Changeset f32d144 in sasview for fittingview/src/sans/perspectives/fitting/hint_fitpage.py
- Timestamp:
- Apr 27, 2012 2:20:33 PM (13 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:
- f992a06
- Parents:
- 9e07bc4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/hint_fitpage.py
r49c69de rf32d144 1 """ 2 This class provide general structure of fitpanel page 3 """ 1 4 import wx 2 5 from sans.guiframe.panel_base import PanelBase … … 6 9 This class provide general structure of fitpanel page 7 10 """ 8 11 ## Internal name for the AUI manager 9 12 window_name = "Hint Page" 10 13 ## Title to appear on top of the window … … 13 16 def __init__(self, parent): 14 17 wx.ScrolledWindow.__init__(self, parent, 15 style = wx.FULL_REPAINT_ON_RESIZE)18 style = wx.FULL_REPAINT_ON_RESIZE) 16 19 PanelBase.__init__(self, parent) 17 20 msg = "right click on the data when it is highlighted " … … 21 24 def do_layout(self): 22 25 """ 23 Draw the page 26 Draw the page 24 27 """ 25 name ="Hint"26 box_description= wx.StaticBox(self, -1, name)28 name = "Hint" 29 box_description= wx.StaticBox(self, -1, name) 27 30 boxsizer = wx.StaticBoxSizer(box_description, wx.VERTICAL) 28 msg 31 msg = " How to link data to the control panel: \n \n" 29 32 msg += " First load data file from 'File' menu. \n" 30 33 msg += " Then Highlight and right click on the data plot. \n" … … 33 36 boxsizer.Add(self.hint_txt, wx.ALL|wx.EXPAND, 20) 34 37 self.vbox = wx.BoxSizer(wx.VERTICAL) 35 self.vbox.Add(boxsizer 38 self.vbox.Add(boxsizer) 36 39 self.vbox.Layout() 37 self.vbox.Fit(self) 40 self.vbox.Fit(self) 38 41 self.SetSizer(self.vbox) 39 self.SetScrollbars(20, 20,25,65)42 self.SetScrollbars(20, 20, 25, 65) 40 43 self.Layout() 41 44 42 45 def createMemento(self): 43 return 46 return 47 44 48 45 49 class HelpWindow(wx.Frame): … … 47 51 wx.Frame.__init__(self, parent, id, title, size=(570, 400)) 48 52 49 self.page = HintFitPage(self) 53 self.page = HintFitPage(self) 50 54 self.Centre() 51 55 self.Show(True) 52 53 if __name__=="__main__":54 app = wx.App()55 HelpWindow(None, -1, 'HelpWindow')56 app.MainLoop()57
Note: See TracChangeset
for help on using the changeset viewer.