-
导入easygui
输入sudo pip install easygui
如果遇到链接超时,换阿里云的源
输入sudo pip install easygui -i http://mirrors.aliyun.com/pypi/simple/
2.使用buttonbox创建一个选择界面并返回选择项
while True:
choice = buttonbox(msg = ‘What program you want to run?’,choices = (‘exit’,‘voive_control’,‘talking’))
if choice == ‘exit’:
stop_Grbl()#stop Grbl
thread1.close()
elif choice == ‘voive_control’:#run voive_control programelif choice == ‘talking’: #run talking program
stop_Grbl()#stop Grbl
具体可看easygui用法
在树莓派python中导入easygui模块
最新推荐文章于 2023-06-29 00:38:24 发布