Python tKinter在表单背景上读取键盘输入 [英] Python tKinter read keyboard input on background of form
本文介绍了Python tKinter在表单背景上读取键盘输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为我的Raspberry Pi构建一个带有python的表单。
当我的表单显示时我需要用条形码扫描器扫描条形码键盘输入和我需要连接到mysql数据库的代码。
条形码不应显示,只能在我的表格背景上阅读并使用连接到mysql。
我该怎么做?
我是python的新手所以欢迎任何帮助!
这是我到目前为止的代码: http:// codepad。 org / E2KusyNw [ ^ ]
谢谢!
Hi, i'm building a form with python for my Raspberry Pi.
When my form is showing i need to scan a barcode with a barcode scanner as keyboard input and with that code i need to connect to a mysql database.
The barcode shouldn't be displayed, only be read on the background of my form and used to connect to mysql.
How can i do this?
I'm new to python so any help is welcome!
this is my code so far: http://codepad.org/E2KusyNw[^]
Thanks!
推荐答案
这篇关于Python tKinter在表单背景上读取键盘输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文