button in python

28

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()

Comments

Submit
0 Comments