src/eric7/EricWidgets/EricAnimatedWidget.py

branch
eric7
changeset 10245
98b54c6e523b
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10244:1b67aa43ec93 10245:98b54c6e523b
87 Private slot to animate the next frame. 87 Private slot to animate the next frame.
88 88
89 @param frame frame number 89 @param frame frame number
90 @type int 90 @type int
91 """ 91 """
92 self.setFixedHeight(frame * self.__stepHeight) 92 self.setFixedHeight(int(frame * self.__stepHeight))
93 self.__widget.move(self.pos().x(), self.__startY - frame * self.__stepY) 93 self.__widget.move(self.pos().x(), int(self.__startY - frame * self.__stepY))
94 94
95 @pyqtSlot() 95 @pyqtSlot()
96 def hide(self): 96 def hide(self):
97 """ 97 """
98 Public slot to hide the animated widget. 98 Public slot to hide the animated widget.

eric ide

mercurial