[issue40414] Incorrect mouse and keyboard mapping

2020-05-01 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Sequences 'a' and '1' are unambiguously interpreted as abbreviating 
'' and '', and similarly for any other printable ascii 
char.  '' is interpreted also as '', but there is no reason to 
add the brackets.  In any case, binding a specific printable key is fairly 
rare.  '<1>' is ambiguous is that it could also mean ''.  Since '1' 
is available to abbreviate '', tcl currently chooses the button 
interpretation, and has AFAIK for at least a decade or more.  In any case, what 
tcl does is not a Python bug, and it does not matter what it might have done in 
old versions.

Note.  Buttons 4 and 5 are used on Linux for a mousewheel.  On Windows, they 
correspond to actual buttons, if present.  I just tested with a mouse with two 
side buttons.  '<6>', etc, is seen as key-6.

--
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40414] Incorrect mouse and keyboard mapping

2020-04-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

On which platform and Python version they were mapped to keyboard number 
buttons?

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40414] Incorrect mouse and keyboard mapping

2020-04-27 Thread Jah-On


New submission from Jah-On :

Hi all,
On Ubuntu Cinnamon Remix, with python3, and tkinter,

canvas.bind("<1>", callback)
canvas.bind("<2>", callback)
canvas.bind("<3>", callback)
canvas.bind("<4>", callback)
canvas.bind("<5>", callback)

are now mapped to mouse buttons, instead of keyboard number buttons.

--
components: Tkinter
messages: 367481
nosy: Jah-On
priority: normal
severity: normal
status: open
title: Incorrect mouse and keyboard mapping
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com