[PyQt] Bugs and Question in doc/examples/tutorials/t10.py

David Boddie david at boddie.org.uk
Tue Dec 9 00:53:51 GMT 2008


On Wed Dec 3 15:02:07 GMT 2008, Grissiom wrote:

> And here comes the questions:
> 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?

Can you post a code snippet to demonstrate what you have done? It always
helps to be able to see the code in context.

David


More information about the PyQt mailing list