Guest User

Untitled

a guest
Aug 21st, 2024
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import tkinter as tk
  2. def show_entry():
  3. user_input = entry.get()
  4. print(f"Benutzereingabe: {user_input}")
  5.  
  6.  
  7. root = tk.Tk()
  8. root.title("default")
  9. ''
  10. entry = tk.Entry(root, width=50)
  11. entry.pack(pady=10)
  12. button = tk.Button(root, text="Eingabe anzeigen", command=show_entry)
  13. button.pack(pady=10)
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment