[PyKDE] QWidgetPlugin

Roland Schulz r2s2 at gmx.de
Tue Jan 20 20:56:00 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Tuesday 20 January 2004 18:53, Jim Bublitz wrote:
> On Tuesday January 20 2004 08:24, Roberto Alsina wrote:
> > I want to make it easier for widgets written in python to be
> > used from designer. While it is possible to use the regular
> > "custom widget" dialog... well, it kinda sucks visually :-)
> >
> > So, the solution would be something using QWidgetPlugin.
> >
> > It seems what I would have to do is:
> >
> > * Create a QWidgetPlugin in C++
> > * Make such QWidgetPlugin.create()
> >   - load a python interpreter
> >   - pass parent to it
> >   - run a python script that creates the widget
> >   - unload the interpreter.
> >
> > Is that possible?
> >
> > Such plugin could even be made almost automatically, since the
> > only thing that changes is the 3-line python script it runs.
> >
> > Any ideas, suggestions.... working code? ;-)
>
> Roland Schulz and some others were working on this and I believe
> have it mostly complete. I think the remaining problem was in
> loading a Python widget from an app with Python already running
> (using QWidgetFactory?) - the widget tries to load the Python
> interpreter itself, but gets the running version of Python and
> runs into thread state problems.
Additional signals and slots aren't working yet. I started to implement them,
but haven't finished that. What does work: displaying the widget and changing
properties.

> Hopefully Roland's still on the list and can provide you more
> detail (and code?)
I lost interrest because no ones used it. So I haven't worked on it since
November. But I'm happy to answer any questions and fixing bugs which get
reported. The installation is kind of tricky and the docu mostly not
existing, so again just ask.
You can download the latest version from
www.galileiconsult.de/qtdesigner.tgz

regards
Roland Schulz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFADYViV/hlvQgMogsRAqlFAKD3jo/sSbUA95c5s9Jn0Z+xqX780ACdHgCh
hBAqhMj4dMSK4RFKWbjujIc=
=x57k
-----END PGP SIGNATURE-----




More information about the PyQt mailing list