从文件执行键盘

时间:2015-12-15 22:55:37

标签: python windows python-3.x tkinter

我正在使用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提供什么命令,以便它可以打开此应用程序。

0 个答案:

没有答案