Funktion für send_clicked wahr falsch und musste raus und in den Button-Code an sich integriert werden
This commit is contained in:
parent
068b746bc8
commit
49fb80d32b
14
journal.py
14
journal.py
|
|
@ -12,14 +12,6 @@ height = journal.winfo_screenheight()
|
|||
journal.geometry("%dx%d" % (width, height))
|
||||
journal.title("Ameland Kinderjournal")
|
||||
|
||||
|
||||
def send_clicked():
|
||||
""" callback when the message has been composed and "Abschicken" has been clicked
|
||||
"""
|
||||
msg = f'Deine Nachricht wurde gespeichert',
|
||||
command = lambda: showinfo(title="Information", message="Deine Nachricht wurde gespeichert")
|
||||
|
||||
|
||||
# store name and message
|
||||
name = tk.StringVar()
|
||||
message = tk.StringVar()
|
||||
|
|
@ -42,7 +34,11 @@ message_text = tk.Text(journal, height=50)
|
|||
message_text.pack()
|
||||
|
||||
# Send Button
|
||||
button = ttk.Button(journal, text="Abschicken", command=send_clicked(), default="disabled")
|
||||
button = ttk.Button(
|
||||
journal,
|
||||
text="Abschicken",
|
||||
command=lambda: showinfo(title="Information", message="Deine Nachricht wurde gespeichert")
|
||||
)
|
||||
button.pack()
|
||||
|
||||
journal.mainloop()
|
||||
Loading…
Reference in New Issue
Block a user