Changeset f78c7d2 in sasview


Ignore:
Timestamp:
Nov 24, 2016 5:51:14 AM (8 years ago)
Author:
wojciech
Children:
9a26428
Parents:
e42c8e9d
Message:

OpenCL dialog prototype

Location:
src/sas/sasgui/perspectives/fitting
Files:
1 added
1 edited

Legend:

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

    rec72ceb rf78c7d2  
    192192        self.bumps_options_menu = self.menu1.FindItemById(self.id_bumps_options) 
    193193        self.bumps_options_menu.Enable(True) 
     194 
     195        self.id_gpu_options_panel = wx.NewId() 
     196        self.menu1.Append(self.id_gpu_options_panel, "GPU Options", "Choose how to compile models") 
     197        wx.EVT_MENU(owner, self.id_gpu_options_panel, self.on_gpu_options) 
    194198 
    195199        self.id_result_panel = wx.NewId() 
     
    801805        self.result_frame.Show() 
    802806        self.result_frame.Raise() 
     807 
     808    def on_gpu_options(self, event=None): 
     809        """ 
     810        Make the Fit Results panel visible. 
     811        """ 
     812        import sas.sasgui.perspectives.fitting.gpu_options as GpuOptions 
     813        dialog = GpuOptions.GpuOptions(None, -1, "") 
     814        dialog.ShowModal() 
    803815 
    804816    def stop_fit(self, uid): 
Note: See TracChangeset for help on using the changeset viewer.