python 中的按钮

2023-11-18

以下示例是关于Python中包含python 中的按钮用法的示例代码,想了解python 中的按钮的具体用法?python 中的按钮怎么用?python 中的按钮使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:button in python源码类型:Python
import tkinter as tk

root = tk.Tk()

# Textausgabe erzeugen
label1 = tk.Label(root, text="Hallo Welt")
label1.pack()

schaltf1 = tk.Button(root, text="Aktion durchführen")
schaltf1.pack()

root.mainloop()

本文地址:https://www.itbaoku.cn/snippets/876569.html