从fi执行键盘

2024-05-16 01:46:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在windows 8上开发一个桌面应用程序,问题是触摸键盘在桌面模式下不会自动弹出,因此,我想根据其位置运行触摸屏键盘

C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe

这基本上就是屏幕键盘的位置。我想在输入聚焦后触发它,一旦失去聚焦,它就会自动关闭。你知道吗

下面是我的代码

 addressInput = tk.Entry(self, font = "Verdana 20 ", justify="center")
 # Once the entry has gained focused, display the keyboard
 addressInput.bind("<FocusIn>", displayKeyboard)

我不确定应该给displayKeyboard什么命令,这样它才能打开这个应用程序。你知道吗


Tags: the应用程序windows模式filescommon键盘program