pygui: updates to leverage tk provided constants for sticky configuration, instead of duplicate strings everywhere

This commit is contained in:
Blake Harnden 2020-08-02 10:36:14 -07:00
parent 2aeb119b04
commit f0bc3bbc99
40 changed files with 501 additions and 496 deletions

View file

@ -1,6 +1,7 @@
import logging
import threading
import time
import tkinter as tk
from typing import TYPE_CHECKING, Any, Callable, Optional, Tuple
if TYPE_CHECKING:
@ -26,7 +27,7 @@ class ProgressTask:
self.time: Optional[float] = None
def start(self) -> None:
self.app.progress.grid(sticky="ew", columnspan=2)
self.app.progress.grid(sticky=tk.EW, columnspan=2)
self.app.progress.start()
self.time = time.perf_counter()
thread = threading.Thread(target=self.run, daemon=True)