wir können endlich auch den Text in die Datei schreiben! Damit ist der Code kurz vor benutzbar und funktional nahezu fertig!
This commit is contained in:
parent
a8b5020419
commit
97daa96466
|
|
@ -54,7 +54,7 @@ message_text.pack()
|
||||||
def send_button_clicked():
|
def send_button_clicked():
|
||||||
with open(journal_filename_path, "a") as journal_of_the_day:
|
with open(journal_filename_path, "a") as journal_of_the_day:
|
||||||
journal_of_the_day.write(name.get() + "\n")
|
journal_of_the_day.write(name.get() + "\n")
|
||||||
journal_of_the_day.write(message_text.get() + "\n")
|
journal_of_the_day.write(message_text.get(1.0, "end-1c") + "\n")
|
||||||
journal_of_the_day.write("-----------------\n")
|
journal_of_the_day.write("-----------------\n")
|
||||||
showinfo(title = "Information", message = "Deine Nachricht wurde gespeichert")
|
showinfo(title = "Information", message = "Deine Nachricht wurde gespeichert")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user