Input Widgets¶
Enhanced line edit widgets with additional functionality.
Preview
Classes¶
FXIconLineEdit
¶
Bases: ,
A line edit that displays an icon on the left or right side.
The icon is theme-aware and will refresh automatically when the application theme changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
|
The name of the icon to display. |
None
|
|
|
The position of the icon ('left' or 'right'). |
'left'
|
|
|
The parent widget. |
None
|
Methods:
| Name | Description |
|---|---|
|
Reposition the icon when the line edit is resized. |
FXPasswordLineEdit
¶
Bases: ,
A custom widget that includes a password line edit with a show/hide button.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
|
The parent widget. |
None
|
|
|
The position of the icon ('left' or 'right'). |
'right'
|
Methods:
| Name | Description |
|---|---|
|
Toggles the echo mode between password and normal, and changes the |
toggle_reveal
¶
Toggles the echo mode between password and normal, and changes the icon of the reveal button accordingly.