Changeset 6fb01b6 in sasview


Ignore:
Timestamp:
Apr 20, 2009 11:08:03 PM (16 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:
31482fc
Parents:
7011ae97
Message:

improve help window when clicking on model details.

Location:
sansview
Files:
2 edited
2 moved

Legend:

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

    rdcd330b r6fb01b6  
    6464             contains help info 
    6565        """ 
    66         vbox1  = wx.BoxSizer(wx.HORIZONTAL) 
    67          
     66        vbox1  =wx.FlexGridSizer(1, 2,0,0) 
     67 
    6868        lpanel = wx.Panel(self, -1,style=wx.BORDER_SUNKEN) 
    6969        rpanel = wx.Panel(self, -1) 
    70         vbox1.Add(lpanel, -1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    71         vbox1.Add(rpanel, -1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    7270         
     71        vbox1.AddMany([ (lpanel,-1,wx.EXPAND,0),  
     72            (rpanel, -1,wx.EXPAND,0)]) 
     73        vbox1.AddGrowableRow(0, 0) 
     74        vbox1.AddGrowableCol(0, 1) 
     75        
     76 
    7377        vbox = wx.BoxSizer(wx.VERTICAL) 
    74         header = wx.Panel(rpanel, -1, size=(-1, 20)) 
     78        header = wx.Panel(rpanel, -1) 
    7579        header.SetBackgroundColour('#6666FF') 
    7680        header.SetForegroundColour('WHITE') 
     
    98102        vboxl.Add(headerl, 0, wx.EXPAND) 
    99103        self.lhelp = html.HtmlWindow(lpanel, -1, style=wx.NO_BORDER) 
    100         self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER) 
     104        self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER, size=(500,-1)) 
    101105        page1="""<html> 
    102106            <body> 
     
    133137         
    134138        self.SetSizer(vbox1) 
     139        
    135140        self.Centre() 
    136141        self.Show(True) 
  • sansview/perspectives/fitting/modelpage.py

    r1c1436d r6fb01b6  
    398398        frame = HelpWindow(None, -1, name)     
    399399        frame.Show(True) 
    400  
     400        if frame.rhelp.HasAnchor(name): 
     401            frame.rhelp.ScrollToAnchor(name) 
     402             
     403             
    401404    def set_range(self, qmin_x, qmax_x, npts): 
    402405        """ 
Note: See TracChangeset for help on using the changeset viewer.