Hi,<br>According to the doc, <br>1,"self.update()" in the CannonField.setAngle() should be "self.update(self.cannonRect())"<br clear="all">2,"esult.moveBottomLeft(self.rect().bottomLect())" in CannonField.cannonRect() should be "result.moveBottomLeft(self.rect().bottomLeft())"<br>
<br>And here comes the questions:<br>I think that creating a QtCore.QRect and moving it every time repaint the widget is not so good. So I move the code to __init__ and make cannonRect a local variable rather than a function. But the cannon doesn't move i.e, the widget doen't get repainted correctly. Any hint there?<br>
<br>-- <br>Cheers,<br>Grissiom<br>