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

Mark Heieis mheieis at alois.ca
Thu Oct 2 14:36:20 UTC 2014


Okay. I'll have to dig deeper. BTW which are you compiling for scripter 
or scripter2? Scripter2 for me.



On 2014-10-02 03:03, ale rimoldi wrote:
> hi mark
>
>> 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.
>
> sadly, the code still does not use variant_converter... so all changes
> over there have no influence on the current error.
>
> but your code help me: replacing "variant.type()" != with "not
> variant.type() is None" made the code better and helped me
> understanding, where the problem probably is.
>
> for some reason __getattr__ gets called when setting up the signal
> *but* the signal is not a property of the object (anymore).
>
>
> let's see if i can make one more step, now...
>
>
> ciao && thanks for your help
> 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