-
导入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模块
猜你喜欢
转载自blog.csdn.net/cool_bot/article/details/89440744
今日推荐
周排行