import easygui
res = easygui.msgbox("Hello There")
print(res)
编译运行:出现错误:
import tkinter as tk # python3
ModuleNotFoundError: No module named ‘tkinter’
解决方法:
- sudo apt-get install python3-tk
运行结果:
按下按钮之后,打印:“ok”
import easygui
res = easygui.msgbox("Hello There")
print(res)
编译运行:出现错误:
import tkinter as tk # python3
ModuleNotFoundError: No module named ‘tkinter’
解决方法:
- sudo apt-get install python3-tk
运行结果:
按下按钮之后,打印:“ok”