jarvisteach / appJar

Simple Tkinter GUIs in Python

Home Page:http://appJar.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work SpaceBar in Binding Keys

xitr opened this issue · comments

commented

Bug Report


Context


Does not work SpaceBar in Binding Keys

Expected Behaviour


Replace this with what you expect to happen.

Actual Behaviour


Replace this with what does happen.

Any error messages produced by appJar


_tkinter.TclError: bad event type or keysym "Space"

Sample code, demonstrating the issue


app.bindKey("space", keyPress)

What steps are needed to reproduce the bug


Replace this with the steps we should follow to reproduce the bug.

Version Information


appJar: 0.94.0 Python: 3.11.1 TCL: 8.6, TK: 8.6 Platform: Windows pid: 7760 locale: en_En

I propose to add
keyMap = keyMap.replace("Space", "space")
in _cleanKeyMap of class EventBinding appjar.py