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

Mark Heieis mheieis at alois.ca
Wed Oct 1 19:36:48 UTC 2014


Hi Ale,

I went through this process about a year ago. I wanted to get Qt5 and 
scripter 2 working. I remember solving this one.  I think I was able to 
convert (almost?) everything, including the tests but haven't touched it 
for some time now. Where I got stuck was the with the difference in the 
slot architecture

Having a quick look, I think, adding a str type solved the problem you 
indicated.

variant_converter = {
   # XXX QList<type>, QMap<*>, longlong
   "str": lambda v: unicode(v.toString()),
...
}



On 2014-10-01 12:18, ale rimoldi wrote:
> hi
>
> i got a hint and could solve this specific issue...
>
> ... but now i'm stuck with a problem i don't understand in a function
> that i have no idea what is doing...
>
> we will see... i open a ticket on github... if anybody wants to help
> he / she can have a look in there!
>
> https://github.com/aoloe/scribus-plugin-scripter/issues/6
>
> ciao
> a.l.e
>
>> hi
>>
>> i'm trying to get the scripter to work again and port it to python3
>> and pyqt5
>>
>> now, the signal defined in the c++ class does not seem to be visible
>> in the python code
>>
>> https://github.com/aoloe/scribus-plugin-scripter/issues/5
>>
>> does anybody around here have a clue how to solve the issue?
>>
>> 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
>
> ___
> 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