eric6/E5Gui/E5ComboBox.py

changeset 7960
e8fc383322f7
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
7959:44e15eda6506 7960:e8fc383322f7
2 2
3 # Copyright (c) 2012 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2012 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing combobox classes using the eric6 line edits. 7 Module implementing combobox classes using the eric line edits.
8 """ 8 """
9 9
10 from PyQt5.QtWidgets import QComboBox 10 from PyQt5.QtWidgets import QComboBox
11 11
12 12
13 class E5ComboBox(QComboBox): 13 class E5ComboBox(QComboBox):
14 """ 14 """
15 Class implementing a combobox using the eric6 line edit. 15 Class implementing a combobox using the eric line edit.
16 """ 16 """
17 def __init__(self, parent=None, inactiveText=""): 17 def __init__(self, parent=None, inactiveText=""):
18 """ 18 """
19 Constructor 19 Constructor
20 20
48 self.lineEdit().setInactiveText(inactiveText) 48 self.lineEdit().setInactiveText(inactiveText)
49 49
50 50
51 class E5ClearableComboBox(E5ComboBox): 51 class E5ClearableComboBox(E5ComboBox):
52 """ 52 """
53 Class implementing a combobox using the eric6 line edit. 53 Class implementing a combobox using the eric line edit.
54 """ 54 """
55 def __init__(self, parent=None, inactiveText=""): 55 def __init__(self, parent=None, inactiveText=""):
56 """ 56 """
57 Constructor 57 Constructor
58 58

eric ide

mercurial