source: sasview/src/sas/sasgui/perspectives/fitting/hint_fitpage.py @ ae08f14

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 ae08f14 was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago

Remaining modules refactored

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[f32d144]1"""
2    This class provide general structure of  fitpanel page
3"""
[9237df4]4import wx
[d85c194]5from sas.sasgui.guiframe.panel_base import PanelBase
[9237df4]6
[3cd5806]7class HintFitPage(wx.ScrolledWindow, PanelBase):
[9237df4]8    """
[bf66f67]9        This class provide general structure of  fitpanel page
[9237df4]10    """
[f32d144]11    ## Internal name for the AUI manager
[bf66f67]12    window_name = "Hint Page"
[9237df4]13    ## Title to appear on top of the window
[bf66f67]14    window_caption = "Hint page "
[2f4b430]15
[9237df4]16    def __init__(self, parent):
[bf66f67]17        wx.ScrolledWindow.__init__(self, parent,
[2f4b430]18                 style=wx.FULL_REPAINT_ON_RESIZE)
[3cd5806]19        PanelBase.__init__(self, parent)
[9237df4]20        msg = "right click on the data when it is highlighted "
21        msg += "the select option to fit for futher options"
22        self.do_layout()
[2f4b430]23
[9237df4]24    def do_layout(self):
25        """
[f32d144]26            Draw the page
[9237df4]27        """
[f32d144]28        name = "Hint"
[6f16e25]29        box_description = wx.StaticBox(self, wx.ID_ANY, name)
[bf66f67]30        boxsizer = wx.StaticBoxSizer(box_description, wx.VERTICAL)
[f32d144]31        msg = "    How to link data to the control panel: \n \n"
[533d38d]32        msg += "    First load data file from 'File' menu. \n"
33        msg += "    Then Highlight and right click on the data plot. \n"
34        msg += "    Finally, select 'Select data for fitting' in the pop-up menu. \n"
[6f16e25]35        self.hint_txt = wx.StaticText(self, wx.ID_ANY, msg, style=wx.ALIGN_LEFT)
[2f4b430]36        boxsizer.Add(self.hint_txt, wx.ALL | wx.EXPAND, 20)
[bf66f67]37        self.vbox = wx.BoxSizer(wx.VERTICAL)
[f32d144]38        self.vbox.Add(boxsizer)
[bf66f67]39        self.vbox.Layout()
[f32d144]40        self.vbox.Fit(self)
[9237df4]41        self.SetSizer(self.vbox)
[f32d144]42        self.SetScrollbars(20, 20, 25, 65)
[bf66f67]43        self.Layout()
[2f4b430]44
[00e8df8]45    def createMemento(self):
[f32d144]46        return
[2f4b430]47
48
[bf66f67]49class HelpWindow(wx.Frame):
50    def __init__(self, parent, id, title):
51        wx.Frame.__init__(self, parent, id, title, size=(570, 400))
[2f4b430]52
[f32d144]53        self.page = HintFitPage(self)
[bf66f67]54        self.Centre()
55        self.Show(True)
Note: See TracBrowser for help on using the repository browser.