gui: updated core.gui to not use deprecated type hinting
This commit is contained in:
parent
69f05a6712
commit
e7351b594d
40 changed files with 268 additions and 257 deletions
|
@ -2,7 +2,7 @@ import logging
|
|||
import threading
|
||||
import time
|
||||
import tkinter as tk
|
||||
from typing import TYPE_CHECKING, Any, Callable, Optional, Tuple
|
||||
from typing import TYPE_CHECKING, Any, Callable, Optional
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -17,7 +17,7 @@ class ProgressTask:
|
|||
title: str,
|
||||
task: Callable,
|
||||
callback: Callable = None,
|
||||
args: Tuple[Any] = None,
|
||||
args: tuple[Any] = None,
|
||||
):
|
||||
self.app: "Application" = app
|
||||
self.title: str = title
|
||||
|
@ -25,7 +25,7 @@ class ProgressTask:
|
|||
self.callback: Callable = callback
|
||||
if args is None:
|
||||
args = ()
|
||||
self.args: Tuple[Any] = args
|
||||
self.args: tuple[Any] = args
|
||||
self.time: Optional[float] = None
|
||||
|
||||
def start(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue