[PyKDE] Designer

Mark Saward msaward at bigpond.net.au
Thu May 20 09:54:01 BST 2004


Hi,

I'm just starting to learn python and PyQt at the same time.  I'm making
an application using designer.  The problem is, that every time I use
'pyuic' I'm finding I need to modify the resulting file every time. 
Right now I need to add a member function:

    def keyPressEvent(self, event):
        if event.text() == 'd':
            player.Player.x +=1

Is there a way I can write that member function in another file and have
it easily accessed by the resulting file from pyuic without needing to
re-add much code every time?

I hope I'm clear, if not I can explain myself better on any points that
aren't.

Thanks
Mark Saward




More information about the PyQt mailing list