2 |
2 |
3 # Copyright (c) 2012 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> |
3 # Copyright (c) 2012 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> |
4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing combobox classes using the eric5 line edits. |
7 Module implementing combobox classes using the eric6 line edits. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtWidgets import QComboBox |
12 from PyQt5.QtWidgets import QComboBox |
13 |
13 |
14 |
14 |
15 class E5ComboBox(QComboBox): |
15 class E5ComboBox(QComboBox): |
16 """ |
16 """ |
17 Class implementing a combobox using the eric5 line edit. |
17 Class implementing a combobox using the eric6 line edit. |
18 """ |
18 """ |
19 def __init__(self, parent=None, inactiveText=""): |
19 def __init__(self, parent=None, inactiveText=""): |
20 """ |
20 """ |
21 Constructor |
21 Constructor |
22 |
22 |
50 self.__lineedit.setInactiveText() |
50 self.__lineedit.setInactiveText() |
51 |
51 |
52 |
52 |
53 class E5ClearableComboBox(E5ComboBox): |
53 class E5ClearableComboBox(E5ComboBox): |
54 """ |
54 """ |
55 Class implementing a combobox using the eric5 line edit. |
55 Class implementing a combobox using the eric6 line edit. |
56 """ |
56 """ |
57 def __init__(self, parent=None, inactiveText=""): |
57 def __init__(self, parent=None, inactiveText=""): |
58 """ |
58 """ |
59 Constructor |
59 Constructor |
60 |
60 |