Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- def show_entry():
- user_input = entry.get()
- print(f"Benutzereingabe: {user_input}")
- root = tk.Tk()
- root.title("default")
- ''
- entry = tk.Entry(root, width=50)
- entry.pack(pady=10)
- button = tk.Button(root, text="Eingabe anzeigen", command=show_entry)
- button.pack(pady=10)
Advertisement
Add Comment
Please, Sign In to add comment