Changeset 5062bbf in sasview for sansview/perspectives/fitting/hint_fitpage.py
- Timestamp:
- Jun 7, 2010 10:26:43 AM (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:
- b94945d
- Parents:
- 79ac6f8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/hint_fitpage.py
r533d38d r5062bbf 1 1 2 import wx 2 3 … … 4 5 class HintFitPage(wx.ScrolledWindow): 5 6 """ 6 7 This class provide general structure of fitpanel page 7 8 """ 8 9 ## Internal name for the AUI manager … … 12 13 13 14 def __init__(self, parent): 15 """ 16 """ 14 17 wx.ScrolledWindow.__init__(self, parent, 15 18 style= wx.FULL_REPAINT_ON_RESIZE ) … … 21 24 def do_layout(self): 22 25 """ 23 26 Draw the page 24 27 """ 25 28 name="Hint" … … 41 44 42 45 def createMemento(self): 46 """ 47 """ 43 48 return 44 45 class HelpWindow(wx.Frame): 46 def __init__(self, parent, id, title): 47 wx.Frame.__init__(self, parent, id, title, size=(570, 400)) 48 49 self.page = HintFitPage(self) 50 self.Centre() 51 self.Show(True) 52 53 if __name__=="__main__": 54 app = wx.App() 55 HelpWindow(None, -1, 'HelpWindow') 56 app.MainLoop() 57 49 """ 50 Example: :: 51 52 class HelpWindow(wx.Frame): 53 def __init__(self, parent, id, title): 54 wx.Frame.__init__(self, parent, id, title, size=(570, 400)) 55 56 self.page = HintFitPage(self) 57 self.Centre() 58 self.Show(True) 59 60 if __name__=="__main__": 61 app = wx.App() 62 HelpWindow(None, -1, 'HelpWindow') 63 app.MainLoop() 64 """
Note: See TracChangeset
for help on using the changeset viewer.