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

List:       pykde
Subject:    Re: [PyKDE] qApp issues
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2004-12-06 14:57:16
Message-ID: 43715.82.68.80.137.1102345036.squirrel () 82 ! 68 ! 80 ! 137
[Download RAW message or body]

>
> I have python embedded in my app, and I wish to use my application's
> window as the parent for some dialogs created (and coded) in python
> land. Is there a way to get the main widget in C++ to be the parent of
> Python?
>
>
>
> I need my python dialogs to:
>
> 1) Be modal w.r.t my app window,
>
> 2) Not show up in the task bar.
>
>
>
> I think setting the parent to my C++ window will fix these. Also if I
> can work around it, and disable the task bar entry and make the dialog
> always-on-top, that should work too, but won't be as elegant.
>
>
>
> As of right now, the from qt import * line makes a qApp of its own, in
> addition to my C++ qApp.

Why do you say that? The import creates a Python object that wraps the C++
qApp pointer. It doesn't create anything at the C++ level.

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