Changeset 3f0351c6 in sasview


Ignore:
Timestamp:
Feb 4, 2011 3:34:12 PM (13 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:
3cd5806
Parents:
a45037aa
Message:

bind prview button with guiframe toolbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/inversion_panel.py

    r6d3d5ff r3f0351c6  
    3636        """ 
    3737        ScrolledPanel.__init__(self, parent, id=id, **kwargs) 
    38         PanelBase.__init__(self) 
     38        PanelBase.__init__(self, parent) 
    3939        self.SetupScrolling() 
    4040         
     
    235235            return wx.Panel.__getattribute__(self, name) 
    236236         
    237     def _save_state(self, evt=None): 
     237    def on_save(self, evt=None): 
    238238        """ 
    239239        Method used to create a memento of the current state 
     
    675675        button_Save = wx.Button(self, id, "Save") 
    676676        button_Save.SetToolTipString("Save the current P(r) work to file.") 
    677         self.Bind(wx.EVT_BUTTON, self._save_state, id=id)    
    678          
     677        self.Bind(wx.EVT_BUTTON, self.on_save, id=id)    
     678        self._set_save_flag(True) 
    679679        sizer_button = wx.BoxSizer(wx.HORIZONTAL) 
    680680        sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
Note: See TracChangeset for help on using the changeset viewer.