Python Tkinter 条目.我无法在输入字段中输入韩语 [英] Python Tkinter Entry. I can't type Korean in to the Entry field

查看:22
本文介绍了Python Tkinter 条目.我无法在输入字段中输入韩语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Tkinter 在 Python 3 中制作 p2p 聊天程序.我可以将韩文文本粘贴到 Entry 小部件中,然后发送给其他用户,它就可以工作了.

I am making a p2p chat program in Python 3 using Tkinter. I can paste Korean text into the Entry widget and send to the other user and it works.

但是,我无法直接在小部件中输入"韩语.

However, I can't 'type' Korean into the widget directly.

为什么会这样?

我使用的是 Mac OS X Yosemite.

I am using Mac OS X Yosemite.

推荐答案

正如@mohit-bhasi 所提到的,将我的 python 版本升级到 3.8,其中包含 tkinter 8.6 解决了这个问题.我现在可以直接在小部件中输入韩语了.

As mentioned by @mohit-bhasi, upgrading my python version to 3.8 which has tkinter 8.6 in it solved the problem. I can now type Korean directly into the widgets.

唯一需要注意的是,当我完成输入后,我需要按一次向右箭头才能显示最后一个字母.否则不识别最后一个字母.

Only caveat is that I need to press right arrow once when I finished typing to have the last letter appear. Otherwise, the last letter is not recognized.

这篇关于Python Tkinter 条目.我无法在输入字段中输入韩语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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