enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.28k stars 282 forks source link

Recurrence of #281 (keeping a key pressed ) #1200

Open cvsindelar opened 1 year ago

cvsindelar commented 1 year ago

I already posted a comment in the issue #281 thread, but since it is closed, I am opening a new issue.

As originally described, and as now occurs again:

'On a slower system, like a Linux Virtual Machine, I observed an occasional traceback when pressing a key (say, z) and rotating the scene with the mouse: [...] TypeError: SetEventInformationFlipY argument 5: a string of length 1 is required'

I found that the original fix for #281 needs to be modified slightly in the source code for QVTKRenderWindowInteractor.py:

if ev.isAutoRepeat():

key = key[0]

    key = bytes(key[0]) 

(apologies I am not a formatting wiz here)