Changeset 318b5bbb in sasview for fittingview/src/sans/perspectives/fitting/help_panel.py
- Timestamp:
- Dec 18, 2012 8:55:24 AM (12 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:
- 6550b64
- Parents:
- 0203ade
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/help_panel.py
rf51c8ad r318b5bbb 17 17 """ 18 18 """ 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) 21 21 """ 22 22 contains help info 23 23 """ 24 24 self.Show(False) 25 self.SetTitle( 'Fitting Help')25 self.SetTitle(title) 26 26 from sans.perspectives.fitting import get_data_path as fit_path 27 27 fitting_path = fit_path(media='media') … … 30 30 self.SetIcon(wx.Icon(ico_file, wx.BITMAP_TYPE_ICO)) 31 31 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) 34 34 35 35 vbox = wx.BoxSizer(wx.VERTICAL) 36 header = wx.Panel( rpanel, -1)36 header = wx.Panel(self.rpanel, -1) 37 37 header.SetBackgroundColour('#6666FF') 38 38 header.SetForegroundColour('WHITE') … … 47 47 48 48 vboxl= wx.BoxSizer(wx.VERTICAL) 49 headerl = wx.Panel( lpanel, -1, size=(-1, 20))49 headerl = wx.Panel(self.lpanel, -1, size=(-1, 20)) 50 50 51 51 headerl.SetBackgroundColour('#6666FF') … … 59 59 headerl.SetSizer(hboxl) 60 60 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, 63 63 size=(500, -1)) 64 64 … … 74 74 self.path_pd = os.path.join(path, "pd_help.html") 75 75 self.path_sm = os.path.join(path, "smear_computation.html") 76 76 self.path_mag = os.path.join(path, "polar_mag_help.html") 77 77 78 _html_file = [("load_data_help.html", "Load a File"), 78 79 ("single_fit_help.html", "Single Fit"), … … 85 86 ("%s" % self.path_pd, "Polydispersion Distributions"), 86 87 ("%s" % self.path_sm, "Smear Computation"), 88 ("%s" % self.path_mag, "Polarization/Magnetic Scattering"), 87 89 ("key_help.html", "Key Combination"), 88 90 ("status_bar_help.html", "Status Bar Help"), … … 118 120 vbox.Add(self.rhelp, 1, wx.EXPAND) 119 121 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() 123 125 124 126 vbox1 = wx.BoxSizer(wx.HORIZONTAL) 125 127 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) 128 130 self.SetSizer(vbox1) 129 131
Note: See TracChangeset
for help on using the changeset viewer.