[PyQt] connecting python code to a c++ signal
ale rimoldi
ale.comp_06 at xox.ch
Wed Oct 1 12:04:59 BST 2014
hi
step by step, we are moving the scribus scripter to python3 and pyqt5.
currently, i'm stuck at a
"""
'QObject' object has no attribute 'createMenu(QMainWindow*)'
"""
error.
'createMenu' is a signal defined as
"""
signals:
void createMenu(QMainWindow *mainwin);
"""
in
https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/scripterimpl.h#L75
and it's called as
"""
Scripter.connect("createMenu(QMainWindow*)", createMenu)
"""
in
https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/python/init_scripter.py#L98
the c++ class is loaded through
https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/python/mikro.py
i'm not the original author of the scripter and i don't understand all
the implementation details... but somebody has to do the port.
does anybody have hints on how to solve this issue?
ciao
a.l.e
p.s.: hints on how to generally improve the scripter architecture are
also welcome... but, first, i'd like to see it work again...
More information about the PyQt
mailing list