reformat file to spaces before and after equal sign

This commit is contained in:
julian 2024-01-20 21:50:48 +01:00
parent d39dd9d484
commit a8b5020419

View File

@ -47,15 +47,14 @@ name_entry.focus()
message_label = tk.Label(journal, text = "Deine Nachricht:") message_label = tk.Label(journal, text = "Deine Nachricht:")
message_label.pack(fill = 'x', expand = True) message_label.pack(fill = 'x', expand = True)
#message_text = ttk.Text(journal, height = 50) #message_text = ttk.Text(journal, height = 50)
message_text = tk.Text(journal) message_text = tk.Text(journal, height = 50)
message_text.pack() 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")
message_text_str=message_text.get() journal_of_the_day.write(message_text.get() + "\n")
journal_of_the_day.write(message_text_str + "\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")