【发布时间】:2023-03-07 12:39:02
【问题描述】:
我想在 python 中制作一个 gui 应用程序,因为我正在制作这种类型的代码。 我已经厌倦了很多代码,但我无法满足要求。
【问题讨论】:
-
请添加您的代码以反映您的努力并发布您遇到的错误。
标签: python user-interface tkinter
我想在 python 中制作一个 gui 应用程序,因为我正在制作这种类型的代码。 我已经厌倦了很多代码,但我无法满足要求。
【问题讨论】:
标签: python user-interface tkinter
是什么阻止你这样做,请参考原帖here。但基本代码:
import Tkinter as tk
def create_window():
window = tk.Toplevel(root)
root = tk.Tk()
b = tk.Button(root, text="Create new window", command=create_window)
b.pack()
root.mainloop()
【讨论】: