E5Gui/E5ComboBox.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2401
4f428de32b69
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing combobox classes using the eric5 line edits. 7 Module implementing combobox classes using the eric5 line edits.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtGui import QComboBox 12 from PyQt4.QtGui import QComboBox
11 13
12 14
13 class E5ComboBox(QComboBox): 15 class E5ComboBox(QComboBox):
19 Constructor 21 Constructor
20 22
21 @param parent reference to the parent widget (QWidget) 23 @param parent reference to the parent widget (QWidget)
22 @param inactiveText text to be shown on inactivity (string) 24 @param inactiveText text to be shown on inactivity (string)
23 """ 25 """
24 super().__init__(parent) 26 super(E5ComboBox, self).__init__(parent)
25 27
26 self.setMinimumHeight(24) 28 self.setMinimumHeight(24)
27 29
28 from .E5LineEdit import E5LineEdit 30 from .E5LineEdit import E5LineEdit
29 self.__lineedit = E5LineEdit(self, inactiveText) 31 self.__lineedit = E5LineEdit(self, inactiveText)
57 Constructor 59 Constructor
58 60
59 @param parent reference to the parent widget (QWidget) 61 @param parent reference to the parent widget (QWidget)
60 @param inactiveText text to be shown on inactivity (string) 62 @param inactiveText text to be shown on inactivity (string)
61 """ 63 """
62 super().__init__(parent, inactiveText) 64 super(E5ClearableComboBox, self).__init__(parent, inactiveText)
63 65
64 from .E5LineEdit import E5ClearableLineEdit 66 from .E5LineEdit import E5ClearableLineEdit
65 self.__lineedit = E5ClearableLineEdit(self, inactiveText) 67 self.__lineedit = E5ClearableLineEdit(self, inactiveText)
66 self.setLineEdit(self.__lineedit) 68 self.setLineEdit(self.__lineedit)

eric ide

mercurial