Download sende_button.py from Romyyy187/Romygpt: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/Romyyy187/Romygpt/resolve/main/sende_button.py
- Command line
-
hf download hf://spaces/Romyyy187/Romygpt/sende_button.py
-
curl -L -o sende_button.py https://huggingface.co/spaces/Romyyy187/Romygpt/resolve/main/sende_button.py
410 Bytes
| import tkinter as tk | |
| # Funktion, die ausgeführt wird, wenn der Button geklickt wird | |
| def send_message(): | |
| print("Nachricht wurde gesendet!") | |
| # Hauptfenster erstellen | |
| root = tk.Tk() | |
| root.title("Sende-Button") | |
| # Senden-Button erstellen | |
| send_button = tk.Button(root, text="Senden", command=send_message) | |
| send_button.pack(pady=20) # Button positionieren | |
| # Anwendung starten | |
| root.mainloop() | |