Changeset 6b59bb3 in sasview


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

Setting dialog to unmodal

Location:
src/sas/sasgui/perspectives/fitting
Files:
2 edited

Legend:

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

    r16c1297 r6b59bb3  
    812812        import sas.sasgui.perspectives.fitting.gpu_options as GpuOptions 
    813813        dialog = GpuOptions.GpuOptions(None, -1, "") 
    814         dialog.ShowModal() 
     814        dialog.Show() 
    815815 
    816816    def stop_fit(self, uid): 
  • 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.