[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] qApp is a QApplication instance
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2005-03-22 9:19:12
Message-ID: 55800.82.68.80.137.1111483152.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]

> Phil Thompson <phil@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.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic