Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
fitsettings.FitSettingsComboBox Class Reference

A QComboBox for use with FitContainer. More...

Inheritance diagram for fitsettings.FitSettingsComboBox:
Inheritance graph
[legend]
Collaboration diagram for fitsettings.FitSettingsComboBox:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, args, kwargs)
 Create a FitSettingxComboBox. More...
 
def setFitFunctions (self, user_fits)
 Set the fit functions that can be chosen in this combobox. More...
 
def getCurrentFit (self)
 Return name and fit dictionary for the current fit. More...
 
def setCurrentFit (self, name)
 Set current fit by name. More...
 

Public Attributes

 fit_functions
 

Static Public Attributes

 sigFitUpdated = QtCore.Signal(tuple)
 

Detailed Description

A QComboBox for use with FitContainer.

Constructor & Destructor Documentation

◆ __init__()

def fitsettings.FitSettingsComboBox.__init__ (   self,
  args,
  kwargs 
)

Create a FitSettingxComboBox.

Parameters
argslist(): positional arguments passed to QComboBox
kwargsdict(): keyword arguments passed to QComboBox

Member Function Documentation

◆ getCurrentFit()

def fitsettings.FitSettingsComboBox.getCurrentFit (   self)

Return name and fit dictionary for the current fit.

Returns
tuple(str, dict): name nad fit dict for current fit

◆ setCurrentFit()

def fitsettings.FitSettingsComboBox.setCurrentFit (   self,
  name 
)

Set current fit by name.

'No Fit' if the name is invalid.

Parameters
namestr: name of the fit to be set as current fit

◆ setFitFunctions()

def fitsettings.FitSettingsComboBox.setFitFunctions (   self,
  user_fits 
)

Set the fit functions that can be chosen in this combobox.

Parameters
user_fitsdict: fit dictionary of configured fits

The documentation for this class was generated from the following file: