src/eric7/EricWidgets/EricLineEdit.py

branch
eric7
changeset 10689
3ede487187f2
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10688:0d9853ceb288 10689:3ede487187f2
263 """ 263 """
264 Class implementing a line edit widget showing some inactive text and a 264 Class implementing a line edit widget showing some inactive text and a
265 clear button, if it has some contents. 265 clear button, if it has some contents.
266 """ 266 """
267 267
268 def __init__(self, parent=None, placeholderText="", side=EricLineEditSide.RIGHT): 268 def __init__(self, parent=None, placeholderText=""):
269 """ 269 """
270 Constructor 270 Constructor
271 271
272 @param parent reference to the parent widget 272 @param parent reference to the parent widget
273 @type QWidget 273 @type QWidget
274 @param placeholderText text to be shown on inactivity 274 @param placeholderText text to be shown on inactivity
275 @type str 275 @type str
276 @param side side the clear button should be shown at
277 @type EricLineEditSide
278 """ 276 """
279 super().__init__(parent, placeholderText) 277 super().__init__(parent, placeholderText)
280 278
281 self.setClearButtonEnabled(True) 279 self.setClearButtonEnabled(True)

eric ide

mercurial