Ignore:
Timestamp:
Aug 9, 2012 5:33:31 AM (12 years ago)
Author:
Kieran Campbell <kieranrcampbell@…>
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
Message:

Small fixes to appearance dialogs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/graphAppearance.py

    r67fb83b r3fdb68a  
    2323 
    2424 
    25 class graphAppearance(wx.Frame): 
     25class graphAppearance(wx.Dialog): 
    2626 
    2727    def __init__(self, parent, title, legend=True): 
     
    105105 
    106106        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') 
    108108 
    109109        self.cancel_button.Bind(wx.EVT_BUTTON, self.onCancel) 
    110         self.ok_button.Bind(wx.EVT_BUTTON, self.on_ok) 
    111110 
    112111 
     
    181180        if(fonty.ShowModal() == wx.ID_OK): 
    182181            self.yfont = fonty.get_font() 
    183  
    184     def on_ok(self, e): 
    185         self.Close() 
    186182 
    187183    def onCancel(self, e): 
Note: See TracChangeset for help on using the changeset viewer.