msl.qt.widgets.line_edit module¶
A QLineEdit
that can rescale the font size based on the
size of widget.
- class msl.qt.widgets.line_edit.LineEdit(*, align=None, read_only=False, rescale=False, text=None, text_changed=None, tooltip=None, parent=None)[source]¶
Bases:
QLineEdit
A
QLineEdit
that can rescale the font size based on the size of widget.- Parameters:
align (
Qt.AlignmentFlag
, optional) – How to align the text. Default is AlignLeft.read_only (
bool
, optional) – Whether the displayed text is read only.rescale (
bool
, optional) – Whether the displayed text should rescale when the size of theQLineEdit
changes.text (
str
, optional) – The initial text to display.text_changed – A callable function to use as a slot for the
textChanged()
signal.tooltip (
str
, optional) – The tooltip to display for the line edit.parent (
QWidget
, optional) – The parent widget.