mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed support for python3.7 #737
This commit is contained in:
parent
a564bc35ef
commit
6a3fa7fa29
@ -1,6 +1,10 @@
|
||||
import tkinter
|
||||
import math
|
||||
from typing import Union, Tuple, Optional, Literal, Callable
|
||||
from typing import Union, Tuple, Optional, Callable
|
||||
try:
|
||||
from typing import Literal
|
||||
except ImportError:
|
||||
from typing_extensions import Literal
|
||||
|
||||
from .core_rendering import CTkCanvas
|
||||
from .theme import ThemeManager
|
||||
|
@ -1,5 +1,9 @@
|
||||
import tkinter
|
||||
from typing import Union, Tuple, List, Dict, Callable, Optional, Literal
|
||||
from typing import Union, Tuple, List, Dict, Callable, Optional
|
||||
try:
|
||||
from typing import Literal
|
||||
except ImportError:
|
||||
from typing_extensions import Literal
|
||||
|
||||
from .theme import ThemeManager
|
||||
from .font import CTkFont
|
||||
|
@ -1,6 +1,10 @@
|
||||
from tkinter.font import Font
|
||||
import copy
|
||||
from typing import List, Callable, Tuple, Optional, Literal
|
||||
from typing import List, Callable, Tuple, Optional
|
||||
try:
|
||||
from typing import Literal
|
||||
except ImportError:
|
||||
from typing_extensions import Literal
|
||||
|
||||
from ..theme import ThemeManager
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user