<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
dear scribusers<br>
<br>
this mail is for the ones among you, who know well python and
pyqt...<br>
<br>
while working on getting the new scripter to work with python3 and
pyqt5 i got stuck at the following point:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/aoloe/scribus-plugin-scripter/issues/7">https://github.com/aoloe/scribus-plugin-scripter/issues/7</a><br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div class="edit-comment-hide">
<div class="comment-body markdown-body markdown-format
js-comment-body">
<p>in <a
href="https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/python/init_scripter.py#L98">https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/python/init_scripter.py#L98</a></p>
<pre><code>Scripter.createMenu.connect(createMenu)
</code></pre>
<p>is strying to connect the c++ <code>createMenu()</code> slot
with the python <code>createMenu</code> function.</p>
<p>since qt5 does not accept anymore connection made by passing
a string, we have to correctly make the c++/qt slot available
to python/pyqt.</p>
<p>in <a
href="https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/python/mikro.py#L391">https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/python/mikro.py#L391</a></p>
<pre><code>for i in range(metaobject.methodCount()):
meta_method = metaobject.method(i)
</code></pre>
<p>correctly sees the signal as a method, but i (we) could not
yet find a way to make it available as a slot inside of pyqt.</p>
<br>
<br>
<br>
does anybody have a clue, how to make the signal go from c++ to
python?<br>
<br>
<br>
</div>
</div>
ciao<br>
a.l.e<br>
</body>
</html>