__init__(self,
box,
parent,
text="",
default=True,
tooltip=None,
tooltip_button=None,
button_text=" Toggle",
control=wx.TextCtrl,
width_text=200,
width_button=80,
spacer=0)
(Constructor)
| source code
|
Create a text selection element for the frame.
This consists of a horizontal layout with a static text element, a
text control, and an optional button.
- Parameters:
box (wx.BoxSizer instance) - The box element to pack the structure file selection GUI element
into.
parent (wx object) - The parent GUI element.
text (str) - The static text.
default (bool) - The default value of the control.
tooltip (str) - The tooltip which appears on hovering over the text or input
field.
tooltip_button (str) - The separate tooltip for the button.
button_text (str) - The text to display on the button.
control (wx.TextCtrl derived class) - The control class to use.
width_text (int) - The width of the text element.
width_button (int) - The width of the button.
spacer (int) - The horizontal spacing between the elements.
|