From 8b4b2d888c07d05bd209d609a8600e31086b9e03 Mon Sep 17 00:00:00 2001 From: JP-Carr Date: Fri, 9 Oct 2020 15:14:47 +0100 Subject: [PATCH] log input clears on sucessful submit --- DnD_Time_Manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DnD_Time_Manager.py b/DnD_Time_Manager.py index abb4c26..7853c91 100644 --- a/DnD_Time_Manager.py +++ b/DnD_Time_Manager.py @@ -38,7 +38,8 @@ log=open("log.txt", "a") log.write("{} {}/{}/{} - {}\n".format(str(ct.db["hour"])+":00", ct.db["day"], ct.db["month"][0], ct.db["year"], window["log_input"].Get())) - log.close() + log.close() + window["log_input"].Update("") except: print("UNABLE TO LOG")