[PyKDE] qApp is a QApplication instance
phil at riverbankcomputing.co.uk
Tue Mar 22 09:19:12 GMT 2005
> Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
>> What if you pass "a" rather than "qApp" to cast()?
>>>> sip.cast(a, App)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> SystemError: error return without exception set
This will be fixed in the next snapshot. Mind you, I don't see how it
helps. You still have to stash the object in the module dictionary before
anything else imports it - which you said you had problems with. It seems
to be no extra work to do the obvious thing which is to import the module
in which the reference to the QApplication derived instance is saved.
More information about the PyQt