Classes and functions to facilitate general wx actions.
A base class to be extended by dialogs.
Note: it is important to call this class’s finish method after all components have been added.
Parameters : | parent : wxWindow
wxId : int
title : str
info : tuple of str
|
---|
Methods
A panel subclass which builds in sizer support.
Methods
Add an item to the panel’s sizer.
All extra arguments are passed to the sizer.Add method.
Parameters : | item : wxWindow
|
---|
Create a new button and add it to the panel.
Parameters : | label : str
wxId : int
border : int
handler : method
|
---|---|
Returns : | wxButton :
|
Make a column growable in a flexible sizer.
Parameters : | index : int
proportion : int
|
---|
Add a text label to the control using default options.
Parameters : | text : str
border : int
|
---|---|
Returns : | wxStaticText :
|
Add a label and a text control.
Parameters : | label : str
initialValue : str
choices : list of str
border : int
style : int
defocusHandler : method
valueHandler : method
proportion : int
|
---|
Add a label and text controls to the panel.
The number of controls to be added will be determined by initialValue. There will be one item for each value of initialValue, If the value of allowed at the same position as a value of initialValue is a list, the created control will be a wxComboBox with the listed choices available.
Parameters : | label : str
initialValue : list of str
allowed : list of list of str
border : int
style : int
defocusHandler : method or list of method
|
---|---|
Returns : | list of (wxTextCtrl or wxComboBox) :
|
Add a label and a text control.
Parameters : | label : str
initialValue : str
border : int
style : int
defocusHandler : method
|
---|---|
Returns : | wxTextCtrl :
|
A scan panel with extra options.
Parameters : | parent : wxWindow
wxId : int
initialData : list of tuple of float
formatString : str
buttonIcons : bool
label : str
|
---|
Methods
Get the data values from the table control.
Parameters : | formatData : bool
|
---|---|
Returns : | list of tuple of str :
|
Get the data from one row of the table.
Parameters : | index : int
|
---|---|
Returns : | list of str :
|
Set the data values in the table control.
Parameters : | data : list of tuple
formatData : bool
|
---|
Create a new button.
Parameters : | parent : wxWindow
sizer : wxSizer
wxId : int
icon : wxBitmap
label : str
tooltip : str
border : int
handler : method
|
---|---|
Returns : | wxButton :
|
Create a new menu item and add it to the appropriate menu.
Parameters : | parent : wxWindow
menu : wxMenu
wxId : int
label : str
tooltip : str
handler : method
pos : int
|
---|---|
Returns : | wxMenuItem :
|
Create a new menu and populate it.
Parameters : | parent : wxWindow
menuBar : wxMenuBar
menuTitle : str
menuItems : list of tuple
|
---|---|
Returns : | list of wxMenuItem :
|
Create a label and a text control and add them to the sizer.
Parameters : | parent : wxWindow
sizer : wxSizer
wxId : int
label : str
initialValue : str
border : int
style : int
defocusHandler : method
|
---|---|
Returns : | wxTextCtrl :
|
Create a label and a combo box and add them to the sizer.
Parameters : | parent : wxWindow
sizer : wxSizer
wxId : int
label : str
initialValue : str
choices : list of str
border : int
style : int
defocusHandler : method
valueHandler : method
|
---|---|
Returns : | wxComboBox :
|