Ignore:
Timestamp:
Jun 7, 2010 10:26:43 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

working on documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/hint_fitpage.py

    r533d38d r5062bbf  
     1 
    12import wx 
    23 
     
    45class HintFitPage(wx.ScrolledWindow): 
    56    """ 
    6         This class provide general structure of  fitpanel page 
     7    This class provide general structure of  fitpanel page 
    78    """ 
    89     ## Internal name for the AUI manager 
     
    1213     
    1314    def __init__(self, parent): 
     15        """ 
     16        """ 
    1417        wx.ScrolledWindow.__init__(self, parent, 
    1518                 style= wx.FULL_REPAINT_ON_RESIZE ) 
     
    2124    def do_layout(self): 
    2225        """ 
    23             Draw the page  
     26        Draw the page  
    2427        """ 
    2528        name="Hint" 
     
    4144         
    4245    def createMemento(self): 
     46        """ 
     47        """ 
    4348        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"""    
     50Example: :: 
     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.