[PyQt] mouse pressed event with qt 4.5
Phil Thompson
phil at riverbankcomputing.com
Wed Mar 18 09:14:23 GMT 2009
On Wed, 18 Mar 2009 00:29:21 +0100, Thomas Espenhain
<thomas.espenhain at googlemail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Andreas,
> thanks for your answer and sorry for the missing example .. here it
> comes:
>
> import sys
> from PyQt4 import QtCore, QtGui
> app = QtGui.QApplication(sys.argv)
>
> class Example(QtGui.QWidget):
>
> def __init__(self, parent=None):
> QtGui.QMainWindow.__init__(self, parent)
...that's the first thing to fix...
Phil
More information about the PyQt
mailing list