Plasma & Python in KF5; was Re: Having an issue with the minimum size of Plasma.WebView

Marco Martin notmart at gmail.com
Wed Jan 16 14:37:48 UTC 2013


On Wednesday 16 January 2013, Sebastian Kügler wrote:
> On Wednesday, January 16, 2013 15:29:08 Aaron J. Seigo wrote:
> > On Wednesday, January 16, 2013 14:38:28 Sebastian Kügler wrote:
> > > So you'd write a set of QObject deriven classes in Python (you can use
> > 
> > ..
> > 
> > > These python extensions would then be imported into the context of the
> > > (QML)
> > 
> > this should be done via qml imports or libplasma plugins. is there any
> > case where this is not possible?
> 
> It seems all cases, see Luca's explanations. Looks like being able to do
> this needs work on PyQt itself (metaobject vs. staticmetaobject).

a very mild workaround may be a c++ invokable "invoke()"
so you do like plasmoid.invoke("mypythonFuction()") but would work only for 
sync function and would be rather ugly

-- 
Marco Martin


More information about the Plasma-devel mailing list