Changeset 5771ea3 in sasview
- Timestamp:
- Feb 14, 2011 11:05:05 AM (14 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:
- cadd049e
- Parents:
- 041cf9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/inversion_panel.py
r3f0351c6 r5771ea3 666 666 self.Bind(wx.EVT_BUTTON, self._on_invert, id = id) 667 667 668 id = wx.NewId() 669 button_Reset = wx.Button(self, id, "Reset") 670 button_Reset.SetToolTipString("Reset inversion parameters to default.") 671 self.Bind(wx.EVT_BUTTON, self._on_reset, id = id) 672 #button_Cancel = wx.Button(self, wx.ID_CANCEL, "Cancel") 673 674 id = wx.NewId() 675 button_Save = wx.Button(self, id, "Save") 676 button_Save.SetToolTipString("Save the current P(r) work to file.") 677 self.Bind(wx.EVT_BUTTON, self.on_save, id=id) 668 self._set_reset_flag(True) 678 669 self._set_save_flag(True) 679 670 sizer_button = wx.BoxSizer(wx.HORIZONTAL) 680 671 sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 681 sizer_button.Add(button_Save, 0, wx.LEFT|wx.ADJUST_MINSIZE, 10)682 sizer_button.Add(button_Reset, 0, wx.LEFT|wx.ADJUST_MINSIZE, 10)683 672 sizer_button.Add(button_OK, 0, wx.LEFT|wx.ADJUST_MINSIZE, 10) 684 673 … … 721 710 pass 722 711 723 def _on_reset(self, evt):712 def on_reset(self, event): 724 713 """ 725 714 Resets inversion parameters
Note: See TracChangeset
for help on using the changeset viewer.