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

List:       pykde
Subject:    [PyKDE] QWidgetPlugin
From:       "Roberto Alsina" <ralsina () kde ! org>
Date:       2004-01-20 16:24:33
Message-ID: 64407.200.69.193.205.1074615873.squirrel () linux ! netline ! com ! ar
[Download RAW message or body]

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@kde.org
 (_Y_.)' ._   ) `._`.  " -.-'   KDE Developer (MFCH)
  _..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.'             Buenos Aires - Argentina
Imminentizing the eschaton since 1971.

_______________________________________________
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