[PyKDE] QWidgetPlugin
Roberto Alsina
ralsina at kde.org
Tue Jan 20 16:59:00 GMT 2004
Hello,
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? ;-)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) ralsina at kde.org
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971.
More information about the PyQt
mailing list