Changeset 08707cc in sasview


Ignore:
Timestamp:
May 7, 2018 2:08:33 AM (6 years ago)
Author:
wojciech
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
aadfd693
Parents:
e810d8f
Message:

show the window fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasview/sasview.py

    re810d8f r08707cc  
    222222 
    223223            #Create the OK button in the bottom row. 
    224             ok_button = wx.Button(panel, -1, 'OK') 
    225             self.Bind(wx.EVT_BUTTON, self.on_ok, source=ok_button) 
     224            ok_button = wx.Button(panel, wx.ID_OK ) 
    226225            ok_button.SetFocus() 
    227226            ok_button.SetDefault() 
     
    231230            sizer.Add(ok_button, flag=wx.ALIGN_CENTER | wx.ALL, border=5) 
    232231            panel.SetSizer(sizer) 
    233  
    234         def on_ok(self, event): 
    235             self.Destroy() 
    236232 
    237233    logger = logging.getLogger(__name__) 
Note: See TracChangeset for help on using the changeset viewer.