eric7.EricWidgets.EricLineEdit
Module implementing specialized line edits.
Global Attributes
Classes
Functions
EricClearableLineEdit
Class implementing a line edit widget showing some inactive text and a
clear button, if it has some contents.
Derived from
EricLineEdit
Class Attributes
Class Methods
Methods
Static Methods
EricClearableLineEdit (Constructor)
EricClearableLineEdit(parent=None, placeholderText="", side=EricLineEditSide.RIGHT)
Constructor
- parent (QWidget)
-
reference to the parent widget
- placeholderText (str)
-
text to be shown on inactivity
- side (EricLineEditSide)
-
side the clear button should be shown at
EricLineEdit
Class implementing a line edit widget showing some inactive text.
Derived from
QLineEdit
Class Attributes
Class Methods
Methods
Static Methods
EricLineEdit (Constructor)
EricLineEdit(parent=None, placeholderText="")
Constructor
- parent (QWidget)
-
reference to the parent widget
- placeholderText (str)
-
text to be shown on inactivity
EricLineEdit._updateTextMargins
_updateTextMargins()
Protected slot to update the text margins.
EricLineEdit.addWidget
addWidget(widget, position)
Public method to add a widget to a side.
- widget (QWidget)
-
reference to the widget to add
- position (EricLineEditSide)
-
position to add to
EricLineEdit.event
event(evt)
Public method to handle events.
- evt
-
reference to the event (QEvent)
- Return:
-
flag indicating, whether the event was recognized (boolean)
EricLineEdit.leftMargin
leftMargin()
Public method to get the size of the left margin.
- Return:
-
left margin in pixel (integer)
EricLineEdit.removeWidget
removeWidget(widget)
Public method to remove a widget from a side.
- widget (QWidget)
-
reference to the widget to remove
EricLineEdit.setLeftMargin
setLeftMargin(margin)
Public method to set the left margin.
- margin
-
left margin in pixel (integer)
EricLineEdit.setWidgetSpacing
setWidgetSpacing(spacing)
Public method to set the side widget spacing.
- spacing
-
side widget spacing (integer)
EricLineEdit.textMargin
textMargin(position)
Public method to get the text margin for a side.
- position (EricLineEditSide)
-
side to get margin for
- Return:
-
text margin
- Return Type:
-
int
EricLineEdit.widgetSpacing
widgetSpacing()
Public method to get the side widget spacing.
- Return:
-
side widget spacing (integer)
EricLineEditSide
Class defining the line edit sides.
Derived from
enum.Enum
Class Attributes
Class Methods
Methods
Static Methods
EricLineEditSideWidget
Class implementing the side widgets for the line edit class.
Signals
- sizeHintChanged()
-
emitted to indicate a change of the size hint
Derived from
QWidget
Class Attributes
Class Methods
Methods
Static Methods
EricLineEditSideWidget (Constructor)
EricLineEditSideWidget(parent=None)
Constructor
- parent
-
reference to the parent widget (QWidget)
EricLineEditSideWidget.event
event(evt)
Public method to handle events.
- evt
-
reference to the event (QEvent)
- Return:
-
flag indicating, whether the event was recognized (boolean)