Ignore:
Timestamp:
Dec 1, 2016 4:11:51 AM (8 years ago)
Author:
wojciech
Children:
fbfed45
Parents:
c027106e
Message:

Setting dialog to unmodal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/gpu_options.py

    rc027106e r6b59bb3  
    4141            else: 
    4242                self.option_button[clopt] = "None" 
     43            self.Bind(wx.EVT_LEFT_DOWN, self.on_radio_default, id=button.GetId()) 
    4344            self.Bind(wx.EVT_RADIOBUTTON, self.on_radio, id=button.GetId()) 
    4445            boxsizer.Add(button, 0, 0) 
     
    9091        return clinfo 
    9192 
     93    def on_radio_default(self, event): 
     94        event.GetEventObject().SetValue(not event.GetEventObject().GetValue()) 
     95 
    9296    def on_radio(self, event): 
    9397        """ 
Note: See TracChangeset for help on using the changeset viewer.