E5Gui/E5LineEditButton.py

changeset 1131
7781e396c903
parent 945
8cd4d08fa9f6
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
19 """ 19 """
20 Constructor 20 Constructor
21 21
22 @param parent reference to the parent widget (QWidget) 22 @param parent reference to the parent widget (QWidget)
23 """ 23 """
24 QAbstractButton.__init__(self, parent) 24 super().__init__(parent)
25 25
26 self.__menu = None 26 self.__menu = None
27 self.__image = None 27 self.__image = None
28 28
29 self.setFocusPolicy(Qt.NoFocus) 29 self.setFocusPolicy(Qt.NoFocus)
57 """ 57 """
58 if icon.isNull(): 58 if icon.isNull():
59 self.__image = None 59 self.__image = None
60 else: 60 else:
61 self.__image = icon.pixmap(16, 16).toImage() 61 self.__image = icon.pixmap(16, 16).toImage()
62 QAbstractButton.setIcon(self, icon) 62 super().setIcon(icon)
63 63
64 def __clicked(self): 64 def __clicked(self):
65 """ 65 """
66 Private slot to handle a button click. 66 Private slot to handle a button click.
67 """ 67 """

eric ide

mercurial