Speichern und Beenden Button, aber speichert noch nicht. Beendet nur.
This commit is contained in:
parent
49fb80d32b
commit
fcdabcc2e7
14
journal.py
14
journal.py
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
|
|
@ -34,11 +34,19 @@ message_text = tk.Text(journal, height=50)
|
|||
message_text.pack()
|
||||
|
||||
# Send Button
|
||||
button = ttk.Button(
|
||||
button_send = ttk.Button(
|
||||
journal,
|
||||
text="Abschicken",
|
||||
command=lambda: showinfo(title="Information", message="Deine Nachricht wurde gespeichert")
|
||||
)
|
||||
button.pack()
|
||||
button_send.pack()
|
||||
|
||||
# Quit Button
|
||||
button_quit = ttk.Button(
|
||||
journal,
|
||||
text="Speichern und Beenden",
|
||||
command=lambda: journal.quit()
|
||||
)
|
||||
button_quit.pack()
|
||||
|
||||
journal.mainloop()
|
||||
Loading…
Reference in New Issue
Block a user