PyPO User Manual
GUI.ParameterForms.simpleInputWidgets.SimpleDropdown Class Reference

Implements a dropdown menu. More...

Inheritance diagram for GUI.ParameterForms.simpleInputWidgets.SimpleDropdown:
GUI.ParameterForms.inputWidgetInterfaces.selectionWidgetInterface GUI.ParameterForms.inputWidgetInterfaces.inputWidgetInterface GUI.ParameterForms.inputWidgetInterfaces.MetaCombinerSelectionWidget GUI.ParameterForms.inputWidgetInterfaces.inputWidgetInterface GUI.ParameterForms.inputWidgetInterfaces.MetaCombinerInputWidget

Public Member Functions

def __init__ (self, InputDescription inputDescription, dynamic=False)
 
def read (self)
 
def selectionChanged (self)
 Should be reimplemented to emit a signal. More...
 
def currentIndex (self)
 
def clear (self)
 
- Public Member Functions inherited from GUI.ParameterForms.inputWidgetInterfaces.selectionWidgetInterface
def __init__ (self, parent=None)
 
- Public Member Functions inherited from GUI.ParameterForms.inputWidgetInterfaces.inputWidgetInterface
dict read ()
 subclasses need to reimplement this method and return a dict containing strings as keys. More...
 
dict clear ()
 Clears user input and resets widget.
 

Public Attributes

 inputDescription
 
 comboBox
 

Static Public Attributes

 selectionChangedSignal = Signal(int)
 

Detailed Description

Implements a dropdown menu.

Parameters
inputDescription.optionslist of strings providing the options for the dropdown.
dynamicSets "--Select item--" first option. This is used by
See also
DynamicDropdownWidget to provide a blank form by default.

Member Function Documentation

◆ selectionChanged()

def GUI.ParameterForms.simpleInputWidgets.SimpleDropdown.selectionChanged (   self)

Should be reimplemented to emit a signal.

See also
selectionWidgetInterface

Reimplemented from GUI.ParameterForms.inputWidgetInterfaces.selectionWidgetInterface.


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