textedit¶
- class jukeboxcore.gui.widgets.textedit.JB_PlainTextEdit(text='', parent=None)[source]¶
Bases: PySide.QtGui.QPlainTextEdit
A plain text edit that supports placeholder text
Consturct a new text edit with the given text and parent
Parameters: - text (str) – the inital text to display
- parent (QtGui.QWidget) – the parent widget
Raises: None
- set_placeholder(text)[source]¶
Set the placeholder text that will be displayed when the text is empty and the widget is out of focus
Parameters: text (str) – The text for the placeholder Raises: None
- paintEvent(event)[source]¶
Paint the widget
Parameters: event – Returns: None Return type: None Raises: None
- focusInEvent(e)[source]¶
Repaint the entire viewport
Parameters: e (QFocusEvent) – the focus event Returns: None Return type: None Raises: None
- focusOutEvent(e)[source]¶
Repaint the entire viewport
Parameters: e (QFocusEvent) – the focus event Returns: None Return type: None Raises: None
- staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000005008C88>¶