source: sasview/sansview/perspectives/fitting/hint_fitpage.py @ a704bb5

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since a704bb5 was 00e8df8, checked in by Gervaise Alina <gervyh@…>, 15 years ago

enable and disable smearing option added

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[9237df4]1import wx
2
3
4class HintFitPage(wx.ScrolledWindow):
5    """
6        This class provide general structure of  fitpanel page
7    """
8     ## Internal name for the AUI manager
9    window_name = "Hint Page"
10    ## Title to appear on top of the window
11    window_caption = "Hint page "
12   
13    def __init__(self, parent):
14        wx.ScrolledWindow.__init__(self, parent,
15                 style= wx.FULL_REPAINT_ON_RESIZE )
16       
17        msg = "right click on the data when it is highlighted "
18        msg += "the select option to fit for futher options"
19        self.do_layout()
20       
21    def do_layout(self):
22        """
23            Draw the page
24        """
25        name="Hint"
26        box_description= wx.StaticBox(self, -1,name)
27        boxsizer = wx.StaticBoxSizer(box_description, wx.VERTICAL)
28        msg = "Load data, then right click on the data, when highlighted,\n"
29        msg += "select option to fit for further analysis"
30        self.hint_txt = wx.StaticText(self, -1, msg, style=wx.ALIGN_LEFT)
31        boxsizer.Add(self.hint_txt, wx.ALL|wx.EXPAND, 20)
32        self.vbox = wx.BoxSizer(wx.VERTICAL)
33        self.vbox.Add(boxsizer )
34        self.vbox.Layout()
35        self.vbox.Fit(self) 
36        self.SetSizer(self.vbox)
37        self.SetScrollbars(20,20,25,65)
38        self.Layout()
39       
[00e8df8]40    def createMemento(self):
41        return 
42       
[9237df4]43class HelpWindow(wx.Frame):
44    def __init__(self, parent, id, title):
45        wx.Frame.__init__(self, parent, id, title, size=(570, 400))
46       
47        self.page = HintFitPage(self) 
48        self.Centre()
49        self.Show(True)
50 
51if __name__=="__main__":
52    app = wx.App()
53    HelpWindow(None, -1, 'HelpWindow')
54    app.MainLoop()
55               
Note: See TracBrowser for help on using the repository browser.