我正在树莓派上的openbox(以避免桌面环境)中运行python tkinter应用程序。键盘输入不再起作用。以前,在raspberry pi桌面上启动程序时,键盘输入有效。
要启动我的应用程序,我这样做:
/ etc / X11 / xinit / xinitrc
的内容openbox --config-file ~/.config/openbox/rc.xml --startup /home/pi/mystarter.sh
添加在 /etc/rc.local
的末尾startx
exit 0
mystarter.sh 启动我的python程序。