Package gui :: Package components :: Module combo_list :: Class Combo_list
[hide private]
[frames] | no frames]

Class Combo_list

source code

The combo list GUI element.

Instance Methods [hide private]
 
__init__(self, parent, sizer, desc, n=1, choices=[], evt_fn=None, tooltip=None, divider=None, padding=0, spacer=None, read_only=True)
Build the combo box list widget for a list of list selections.
source code
 
_add(self, event)
Add a new combo box.
source code
 
_build_row(self, text=None)
Construct a row of the GUI element.
source code
 
_delete(self, event)
Add a new combo box.
source code
unicode
GetValue(self)
Return the value represented by this GUI element.
source code
Method Details [hide private]

__init__(self, parent, sizer, desc, n=1, choices=[], evt_fn=None, tooltip=None, divider=None, padding=0, spacer=None, read_only=True)
(Constructor)

source code 

Build the combo box list widget for a list of list selections.

Parameters:
  • parent (wx object instance) - The parent GUI element.
  • sizer (wx.Sizer instance) - The sizer to put the combo box widget into.
  • desc (str) - The text description.
  • n (int) - The number of initial entries.
  • choices (list of str) - The list of choices (all combo boxes will have the same list).
  • evt_fn (func) - The event handling function.
  • tooltip (str) - The tooltip which appears on hovering over the text or input field.
  • divider (None or int) - The optional position of the divider. If None, the parent class variable _div_left will be used if present.
  • padding (int) - Spacing to the left and right of the widgets.
  • spacer (None or int) - The amount of spacing to add below the field in pixels. If None, a stretchable spacer will be used.
  • read_only (bool) - A flag which if True means that text cannot be typed into the combo box widget.

_add(self, event)

source code 

Add a new combo box.

Parameters:
  • event (wx event) - The wx event.

_build_row(self, text=None)

source code 

Construct a row of the GUI element.

Parameters:
  • text - The text description of the

_delete(self, event)

source code 

Add a new combo box.

Parameters:
  • event (wx event) - The wx event.

GetValue(self)

source code 

Return the value represented by this GUI element.

Returns: unicode
The list of choices as a GUI string.