[scribus] scripter: connecting python 3 code to a c++ signal

Mark Heieis mheieis at alois.ca
Wed Oct 1 22:55:44 UTC 2014


Checked for other changes,

to variant_converter
     "QPoint": lambda v: v.toPoint(),qApp

in the def wrap() function

     if isinstance(obj, QString): --> isinstance(obj, str):

Sent my version of file mikro.py to you.

Cheers,

mrh.



On 2014-10-01 12:44, ale rimoldi wrote:
> hi mark
>
> thanks for the hint...
>
>> "str": lambda v: unicode(v.toString()),
> but it does not seem to solve the issue...
>
> placing a debugging line in from_variant() (the only place where
> variant_converter is used) shows that the code does not go through
> there...
>
> i've pushed the change, so you can check if i did the right thing...
>
>
> btw, would it possible to see your code?
>
> ciao
> a.l.e
>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net




More information about the scribus mailing list