[PyQt] Unable to connect signals to Python slots with non-ASCII names

Shriramana Sharma samjnaa at gmail.com
Mon Dec 11 02:58:11 GMT 2017


Hello. This is related to my recent post. I'm using PyQt
5.5.1+dfsg-3ubuntu4 with Py 3.5.1-3 default on Kubuntu Xenial 64 bit.
I'm using non-ASCII words for user-defined
variables and methods. Actually it's in an Indic script but for
readers' convenience as minimal example I give the attached code with
French.

I am connecting a signal to a Python method with non-ASCII name.
Trying to execute the app results in a segfault. The fix is to replace
the function name (as in line 9) with a bare lambda that calls the
function (commented in line 10).

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा 𑀰𑁆𑀭𑀻𑀭𑀫𑀡𑀰𑀭𑁆𑀫𑀸
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyqt_non_ascii_slot.py
Type: text/x-python
Size: 436 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171211/2e7b16bb/attachment.py>


More information about the PyQt mailing list