E5Gui/E5AnimatedWidget.py

changeset 4356
975993ebd7fb
parent 4354
bc2b247a75df
child 4631
5c1a96925da4
equal deleted inserted replaced
4355:40ec6bef4c22 4356:975993ebd7fb
54 Public method to get a reference to the animated widget. 54 Public method to get a reference to the animated widget.
55 55
56 @return reference to the animated widget 56 @return reference to the animated widget
57 @rtype QWidget 57 @rtype QWidget
58 """ 58 """
59 return self.__widget
59 60
60 @pyqtSlot() 61 @pyqtSlot()
61 def startAnimation(self): 62 def startAnimation(self):
62 """ 63 """
63 Public slot to start the animation. 64 Public slot to start the animation.
103 104
104 self.__timeline.setDirection(QTimeLine.Backward) 105 self.__timeline.setDirection(QTimeLine.Backward)
105 self.__timeline.finished.connect(self.close) 106 self.__timeline.finished.connect(self.close)
106 self.__timeline.start() 107 self.__timeline.start()
107 108
108
109 p = self.parentWidget() 109 p = self.parentWidget()
110 if p is not None: 110 if p is not None:
111 p.setFocus() 111 p.setFocus()
112 112
113 def resizeEvent(self, evt): 113 def resizeEvent(self, evt):

eric ide

mercurial