On Wednesday 09 November 2011, 10:29:55 Tayfun Kayhan wrote:
> Thank you, the first one is working well. I tried setting API V2 but
> it gave an error which says that it has been already set to V1. I'll
> try fixing this, as well.

Quoting
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/incompatible_apis.html
(the link, that you got from Andrei):

        An application calls sip.setapi() to set the version number of a 
        particular API. This call must be made before any module that
        implements the API is imported. Once set the version number cannot be
        changed.

In short, before your very first:

        from PyQt4 import QtCore, QtGui

Pete
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to