tkinter不区分大小写的绑定 [英] tkinter case insensitive bind

查看:110
本文介绍了tkinter不区分大小写的绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,当您在tkinter(python3.2 winxp)中绑定键时,绑定使用字母字符区分大小写.换句话说,如果大写锁定处于活动状态,则按Control + o时,绑定<Control-o>不起作用.这是否意味着我需要为每个不区分大小写的字母字符组合编写两个绑定?还是有什么方法可以解决这个问题?

I've noticed that when you bind keys in tkinter (python3.2 winxp), the binds are case sensitive with the letter characters. In other words binding <Control-o> does not work if you press Control+o if caps lock is active. Does it mean I need to write two bindings for each case insensitive key combination with letter characters? Or is there any way to solve this?

感谢您的帮助:)

推荐答案

是的,您必须进行两个绑定.

Yes, you have to make two bindings.

这篇关于tkinter不区分大小写的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆