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

2014-10-02 Thread ale rimoldi
hi mark, > Okay. I'll have to dig deeper. BTW which are you compiling for > scripter or scripter2? Scripter2 for me. yep, the new scripter... the 1.4 scripter is basically in maintenance mode... ciao a-l-e

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

2014-10-02 Thread ale rimoldi
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_con

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

2014-10-02 Thread Mark Heieis
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 >>

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

2014-10-01 Thread ale rimoldi
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 ch

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

2014-10-01 Thread ale rimoldi
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/scri

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

2014-10-01 Thread Mark Heieis
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 > > thank

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

2014-10-01 Thread ale rimoldi
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

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

2014-10-01 Thread Mark Heieis
Ok. Let me clean the cobwebs of the code and my memory first. 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

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

2014-10-01 Thread Mark Heieis
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