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/appearanceDialog.py

    r6c4130a r3fdb68a  
    2424 
    2525 
    26 class appearanceDialog(wx.Frame): 
     26class appearanceDialog(wx.Dialog): 
    2727 
    2828    def __init__(self,parent,title): 
    29         super(appearanceDialog,self).__init__(parent, title=title,size=(570,430)) 
    30  
    31         self.okay_clicked = False 
     29        super(appearanceDialog,self).__init__(parent, title=title, 
     30                                              size=(570, 430)) 
    3231 
    3332        self.symbolLabels = self.get_symbol_label() 
     
    7877 
    7978        # buttons 
    80         OkButton = wx.Button(panel, label='OK') 
    81         OkButton.Bind(wx.EVT_BUTTON,self.onOK) 
     79        OkButton = wx.Button(panel, wx.ID_OK, label='OK') 
    8280        cancelButton = wx.Button(panel, label='Cancel') 
    8381        cancelButton.Bind(wx.EVT_BUTTON, self.CloseDlg) 
     
    172170         
    173171        for color in sortedcolorLabels: 
    174              self.colorListBox.Append(str(color[0])) 
     172            self.colorListBox.Append(str(color[0])) 
    175173  
    176174    def populateSize(self): 
     
    260258        return(size,color,symbol,name) 
    261259 
    262     def onOK(self,e): 
    263         self.okay_clicked = True 
    264  
    265         self.Close() 
Note: See TracChangeset for help on using the changeset viewer.