--- a/E5Gui/E5LineEdit.py Fri Mar 11 08:55:14 2011 +0100 +++ b/E5Gui/E5LineEdit.py Fri Mar 11 16:51:57 2011 +0100 @@ -4,20 +4,21 @@ # """ -Module implementing specialized line edits. +Module implementing specialized line edits. """ from PyQt4.QtCore import pyqtSignal, Qt, QEvent from PyQt4.QtGui import QLineEdit, QStyleOptionFrameV2, QStyle, QPainter, QPalette, \ QWidget, QHBoxLayout, QBoxLayout, QLayout, QApplication, QSpacerItem, QSizePolicy + class SideWidget(QWidget): """ Class implementing the side widgets for the line edit class. """ sizeHintChanged = pyqtSignal() - def __init__(self, parent = None): + def __init__(self, parent=None): """ Constructor @@ -36,14 +37,15 @@ self.sizeHintChanged.emit() return QWidget.event(self, evt) + class E5LineEdit(QLineEdit): """ Class implementing a line edit widget showing some inactive text. """ - LeftSide = 0 + LeftSide = 0 RightSide = 1 - def __init__(self, parent = None, inactiveText = ""): + def __init__(self, parent=None, inactiveText=""): """ Constructor