Changeset 9f51c2c in sasview for sansguiframe/src/sans/guiframe/local_perspectives/plotting/graphAppearance.py
- Timestamp:
- Aug 15, 2012 6:52:34 PM (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:
- f866fb5
- Parents:
- 25e4dda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/graphAppearance.py
r3fdb68a r9f51c2c 7 7 8 8 /** 9 10 11 12 9 This software was developed by Institut Laue-Langevin as part of 10 Distributed Data Analysis of Neutron Scattering Experiments (DANSE). 11 12 Copyright 2012 Institut Laue-Langevin 13 13 14 14 **/ … … 23 23 24 24 25 class graphAppearance(wx. Dialog):25 class graphAppearance(wx.Frame): 26 26 27 27 def __init__(self, parent, title, legend=True): … … 105 105 106 106 self.cancel_button = wx.Button(panel, label='Cancel') 107 self.ok_button = wx.Button(panel, wx.ID_OK,label='OK')107 self.ok_button = wx.Button(panel, label='OK') 108 108 109 109 self.cancel_button.Bind(wx.EVT_BUTTON, self.onCancel) 110 self.ok_button.Bind(wx.EVT_BUTTON, self.on_ok) 110 111 111 112 … … 180 181 if(fonty.ShowModal() == wx.ID_OK): 181 182 self.yfont = fonty.get_font() 183 184 def on_ok(self, e): 185 self.Close() 182 186 183 187 def onCancel(self, e):
Note: See TracChangeset
for help on using the changeset viewer.