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

List:       pykde
Subject:    Re: [PyKDE] qApp is a QApplication instance
From:       "Giovanni Bajo" <rasky () develer ! com>
Date:       2005-02-16 16:07:50
Message-ID: 042a01c51441$a9f8ece0$bf03030a () trilan
[Download RAW message or body]

Phil Thompson <phil@riverbankcomputing.co.uk> wrote:

>> Is this expected / wanted? I had expected to be able to access the Python
>> instance of the application through the global qApp, not the
QApplication.
>> In Qt, I can down-cast the qApp pointer to my subclass to access my
>> methods,
>> how can I do the same in PyQt?
>
> sys.modules['qt'].__dict__['qApp'] = A(sys.argv)
>
> ...might do it. You have to make sure that this is done before the other
> modules that want to use it get imported.


I'll try that, thanks.

Would you consider this behaviour a bug, and in that case, is it feasable to
fix it?
-- 
Giovanni Bajo

_______________________________________________
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