Share and Money Management  0.16
Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
gui.controls.PositionChoice Class Reference

Choice widget to select a position. More...

Inheritance diagram for gui.controls.PositionChoice:

Public Member Functions

def __init__ (self, args, kwargs)
 Constructor. More...
 
- Public Member Functions inherited from gui.controls.BaseChoice
def __init__ (self, args, kwargs)
 Constructor. More...
 
def addEmptyChoice (self)
 Add an empty choice to the widget. More...
 
def GetSelection (self)
 Returns the selected object or None. More...
 
def SetSelection (self, obj)
 Select an other object. More...
 
def SelectFirst (self)
 Select the first (non-empty) element. More...
 
def Select (self, obj)
 Selecting a element specified by the given object. More...
 

Static Public Attributes

 open_pos = None
 Flag to list open, closed or all positions. More...
 
- Static Public Attributes inherited from gui.controls.BaseChoice
bool addEmpty = False
 Add an empty entry to the widget during initialisation. More...
 

Private Member Functions

def _formatElement (self, obj)
 Function to format a single object. More...
 
def _getElements (self)
 Function to query all objects of unique type. More...
 

Additional Inherited Members

- Public Attributes inherited from gui.controls.BaseChoice
 addEmpty
 
 idx_obj
 Dictionary to lookup relations between position and object. More...
 

Detailed Description

Choice widget to select a position.

Constructor & Destructor Documentation

◆ __init__()

def gui.controls.PositionChoice.__init__ (   self,
  args,
  kwargs 
)

Constructor.

Keyword arguments:
  • open_pos Flag to list open, closed or all positions
See also
open_pos

References gui.controls.PositionChoice.open_pos.

Member Function Documentation

◆ _formatElement()

def gui.controls.PositionChoice._formatElement (   self,
  obj 
)
private

Function to format a single object.

◆ _getElements()

def gui.controls.PositionChoice._getElements (   self)
private

Function to query all objects of unique type.

See also
open_pos

References gui.controls.PositionChoice.open_pos.

Member Data Documentation

◆ open_pos

gui.controls.PositionChoice.open_pos = None
static

Flag to list open, closed or all positions.

Referenced by gui.controls.PositionChoice.__init__(), and gui.controls.PositionChoice._getElements().


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