Changeset 3fdb68a in sasview for sansguiframe/src/sans/guiframe/local_perspectives/plotting/graphAppearance.py
- Timestamp:
- Aug 9, 2012 5:33:31 AM (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:
- 96277b9
- Parents:
- 443b1b8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/graphAppearance.py
r67fb83b r3fdb68a 23 23 24 24 25 class graphAppearance(wx. Frame):25 class graphAppearance(wx.Dialog): 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, label='OK')107 self.ok_button = wx.Button(panel, wx.ID_OK, 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)111 110 112 111 … … 181 180 if(fonty.ShowModal() == wx.ID_OK): 182 181 self.yfont = fonty.get_font() 183 184 def on_ok(self, e):185 self.Close()186 182 187 183 def onCancel(self, e):
Note: See TracChangeset
for help on using the changeset viewer.