floor division instead of type conversion
This commit is contained in:
parent
7120e58e6b
commit
4ccabfc661
2
timer.py
2
timer.py
@ -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())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user