floor division instead of type conversion

This commit is contained in:
Alexander Nigl 2025-04-23 12:12:01 +02:00
parent 7120e58e6b
commit 4ccabfc661

View File

@ -77,7 +77,7 @@ def start_app(enddate):
tlbl.config(fg="red") tlbl.config(fg="red")
else: else:
tlbl.configure(text=deltaStr(delta)) tlbl.configure(text=deltaStr(delta))
root.after(1000 - int(datetime.datetime.now().microsecond / 1000), update) root.after(1000 - datetime.datetime.now().microsecond // 1000, update)
root.bind("<Configure>", resize) root.bind("<Configure>", resize)
root.bind("<Escape>", lambda x: root.destroy()) root.bind("<Escape>", lambda x: root.destroy())