Changeset f71700b in sasview for src/sas


Ignore:
Timestamp:
Mar 24, 2015 11:15:35 PM (10 years ago)
Author:
butler
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:
a862cea0
Parents:
f552ff3
Message:

cleanup of new Pr help infrastructure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/pr/inversion_panel.py

    rf552ff3 rf71700b  
    676676        self.Bind(wx.EVT_BUTTON, self._on_invert, id=wx_id) 
    677677 
    678 #        self.button_help = wx.Button(self, -1, "HELP") 
    679 #       app_tip = "Get help on P(r) inversion." 
    680 #        self.button_help.SetToolTipString(app_tip) 
    681 #        self.button_help.Bind(wx.EVT_BUTTON, self.on_help) 
     678        self.button_help = wx.Button(self, -1, "HELP") 
     679        self.button_help.SetToolTipString("Get help on P(r) inversion.") 
     680        self.button_help.Bind(wx.EVT_BUTTON, self.on_help) 
    682681 
    683682        self._set_reset_flag(True) 
     
    686685        sizer_button.Add((20, 20), 1, wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
    687686        sizer_button.Add(button_ok, 0, wx.LEFT | wx.ADJUST_MINSIZE, 10) 
    688 #        sizer_button.Add(self.button_help, 0, wx.LEFT | wx.ADJUST_MINSIZE, 10) 
     687        sizer_button.Add(self.button_help, 0, wx.LEFT | wx.ADJUST_MINSIZE, 10) 
    689688 
    690689        iy_vb += 1 
     
    963962 
    964963 
    965  
    966 #class HelpDialog(wx.Dialog): 
    967 #    """ 
    968 #    """ 
    969 #    def __init__(self, parent, id): 
    970 #        """ 
    971 #        """ 
    972 #        from sas.pr.invertor import help 
    973 #        wx.Dialog.__init__(self, parent, id, size=(400, 450)) 
    974 #        self.SetTitle("P(r) help") 
    975 #        self.SetWindowVariant(variant=FONT_VARIANT) 
    976 # 
    977 #        vbox = wx.BoxSizer(wx.VERTICAL) 
    978 # 
    979 #       explanation = help() 
    980 # 
    981 #        label_explain = wx.StaticText(self, -1, explanation, size=(360, 350)) 
    982 # 
    983 #        vbox.Add(label_explain, 0, wx.ALL | wx.EXPAND, 15) 
    984 # 
    985 # 
    986 #        static_line = wx.StaticLine(self, -1) 
    987 #        vbox.Add(static_line, 0, wx.EXPAND, 0) 
    988 # 
    989 #        button_ok = wx.Button(self, wx.ID_OK, "OK") 
    990 # 
    991 #        sizer_button = wx.BoxSizer(wx.HORIZONTAL) 
    992 #        sizer_button.Add((20, 20), 1, wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
    993 #        sizer_button.Add(button_ok, 0, wx.LEFT | wx.RIGHT | wx.ADJUST_MINSIZE, 10) 
    994 # 
    995 #        vbox.Add(sizer_button, 0, wx.EXPAND | wx.BOTTOM | wx.TOP, 10) 
    996 # 
    997 #        self.SetSizer(vbox) 
    998 #        self.SetAutoLayout(True) 
    999 # 
    1000 #        self.Layout() 
    1001 #        self.Centre() 
    1002  
    1003964class PrDistDialog(wx.Dialog): 
    1004965    """ 
Note: See TracChangeset for help on using the changeset viewer.