__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.
|