Ignore:
Timestamp:
Dec 18, 2012 8:55:24 AM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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:
6550b64
Parents:
0203ade
Message:

Added polarization and magnetic stuffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/help_panel.py

    rf51c8ad r318b5bbb  
    1717    """ 
    1818    """ 
    19     def __init__(self, parent, id, title='Fitting Help', pageToOpen=None): 
    20         wx.Frame.__init__(self, parent, id, title, size=(850, 530)) 
     19    def __init__(self, parent, id, title='Fitting Help', pageToOpen=None, size=(850, 540)): 
     20        wx.Frame.__init__(self, parent, id, title, size=size) 
    2121        """ 
    2222        contains help info 
    2323        """ 
    2424        self.Show(False) 
    25         self.SetTitle('Fitting Help') 
     25        self.SetTitle(title)  
    2626        from sans.perspectives.fitting import get_data_path as fit_path 
    2727        fitting_path = fit_path(media='media') 
     
    3030            self.SetIcon(wx.Icon(ico_file, wx.BITMAP_TYPE_ICO)) 
    3131        splitter = MultiSplitterWindow(self, style=wx.SP_LIVE_UPDATE) 
    32         rpanel = wx.Panel(splitter, -1) 
    33         lpanel = wx.Panel(splitter, -1, style=wx.BORDER_SUNKEN) 
     32        self.rpanel = wx.Panel(splitter, -1) 
     33        self.lpanel = wx.Panel(splitter, -1, style=wx.BORDER_SUNKEN) 
    3434         
    3535        vbox = wx.BoxSizer(wx.VERTICAL) 
    36         header = wx.Panel(rpanel, -1) 
     36        header = wx.Panel(self.rpanel, -1) 
    3737        header.SetBackgroundColour('#6666FF') 
    3838        header.SetForegroundColour('WHITE') 
     
    4747        
    4848        vboxl= wx.BoxSizer(wx.VERTICAL) 
    49         headerl = wx.Panel(lpanel, -1, size=(-1, 20)) 
     49        headerl = wx.Panel(self.lpanel, -1, size=(-1, 20)) 
    5050        
    5151        headerl.SetBackgroundColour('#6666FF') 
     
    5959        headerl.SetSizer(hboxl) 
    6060        vboxl.Add(headerl, 0, wx.EXPAND) 
    61         self.lhelp = html.HtmlWindow(lpanel, -1, style=wx.NO_BORDER) 
    62         self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER, 
     61        self.lhelp = html.HtmlWindow(self.lpanel, -1, style=wx.NO_BORDER) 
     62        self.rhelp = html.HtmlWindow(self.rpanel, -1, style=wx.NO_BORDER,  
    6363                                     size=(500, -1)) 
    6464 
     
    7474        self.path_pd = os.path.join(path, "pd_help.html") 
    7575        self.path_sm = os.path.join(path, "smear_computation.html") 
    76         
     76        self.path_mag = os.path.join(path, "polar_mag_help.html") 
     77         
    7778        _html_file = [("load_data_help.html", "Load a File"), 
    7879                      ("single_fit_help.html", "Single Fit"), 
     
    8586                      ("%s" % self.path_pd, "Polydispersion Distributions"), 
    8687                      ("%s" % self.path_sm, "Smear Computation"), 
     88                      ("%s" % self.path_mag, "Polarization/Magnetic Scattering"), 
    8789                      ("key_help.html", "Key Combination"), 
    8890                      ("status_bar_help.html", "Status Bar Help"), 
     
    118120        vbox.Add(self.rhelp, 1, wx.EXPAND) 
    119121        vboxl.Add(self.lhelp, 1, wx.EXPAND) 
    120         rpanel.SetSizer(vbox) 
    121         lpanel.SetSizer(vboxl) 
    122         lpanel.SetFocus() 
     122        self.rpanel.SetSizer(vbox) 
     123        self.lpanel.SetSizer(vboxl) 
     124        self.lpanel.SetFocus() 
    123125         
    124126        vbox1 = wx.BoxSizer(wx.HORIZONTAL) 
    125127        vbox1.Add(splitter, 1, wx.EXPAND) 
    126         splitter.AppendWindow(lpanel, 200) 
    127         splitter.AppendWindow(rpanel) 
     128        splitter.AppendWindow(self.lpanel, 200) 
     129        splitter.AppendWindow(self.rpanel) 
    128130        self.SetSizer(vbox1) 
    129131 
Note: See TracChangeset for help on using the changeset viewer.