Basic input and display controls provided by Pytigon's wxPython GUI.
Single-line and multi-line text input.
<text value="Hello" field="name" placeholder="Enter name..." password="true" />
| Attribute | Description |
|---|---|
value |
Initial text value |
field |
Model field for data binding |
placeholder |
Placeholder text when empty |
password |
Hide characters (password input) |
multiline |
Multi-line text area |
readonly |
Display-only, no editing |
Static read-only text.
<label text="User Information" font="bold" />
| Attribute | Description |
|---|---|
text |
Display text |
font |
Font style (bold, italic, size) |
color |
Text color |
Clickable button with action.
<button label="Save" action="save_record" />
<button label="Cancel" action="close_window" />
| Attribute | Description |
|---|---|
label |
Button text |
action |
Handler method name |
icon |
Icon file path |
enabled |
Enable/disable |
Boolean true/false control.
<checkbox label="Active" field="is_active" value="1" />
| Attribute | Description |
|---|---|
label |
Checkbox text |
field |
Model field binding |
value |
Initial checked state (0 or 1) |
Single selection from predefined options.
<choice field="status" values="Draft; Published; Archived" />
| Attribute | Description |
|---|---|
field |
Model field binding |
values |
Semicolon-separated options |
labels |
Display labels (defaults to values) |
Controls fire events that map to application methods:
def save_record(self, control, event):
data = control.get_value()
# Save to database
Events are wired automatically by the tag-to-control conversion in guictrl.tag_ctrltag.