✏️ 正在编辑: hello.py
路径:
/lib64/python2.7/Demo/tkinter/guido/hello.py
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
# Display hello, world in a button; clicking it quits the program import sys from Tkinter import * def main(): root = Tk() button = Button(root) button['text'] = 'Hello, world' button['command'] = quit_callback # See below button.pack() root.mainloop() def quit_callback(): sys.exit(0) main()
💾 保存文件
← 返回文件管理器