eric6/E5Gui/E5AnimatedWidget.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
31 @param duration duration of the animation 31 @param duration duration of the animation
32 @type int 32 @type int
33 @param parent reference to the parent widget 33 @param parent reference to the parent widget
34 @type QWidget 34 @type QWidget
35 """ 35 """
36 super(E5AnimatedWidget, self).__init__(parent) 36 super().__init__(parent)
37 37
38 self.__direction = direction 38 self.__direction = direction
39 self.__stepHeight = 0.0 39 self.__stepHeight = 0.0
40 self.__stepY = 0.0 40 self.__stepY = 0.0
41 self.__startY = 0 41 self.__startY = 0
116 @type QResizeEvent 116 @type QResizeEvent
117 """ 117 """
118 if evt.size().width() != self.__widget.width(): 118 if evt.size().width() != self.__widget.width():
119 self.__widget.resize(evt.size().width(), self.__widget.height()) 119 self.__widget.resize(evt.size().width(), self.__widget.height())
120 120
121 super(E5AnimatedWidget, self).resizeEvent(evt) 121 super().resizeEvent(evt)

eric ide

mercurial