Fixed windows-only import

This commit is contained in:
Profitroll 2023-01-23 12:16:19 +01:00
parent 2cb04531c6
commit cb1d5bea6d
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,6 @@
import platform
import sys
import sv_ttk
from ctypes import byref, c_int, sizeof, windll
from distutils.version import StrictVersion as Version
from os import system
from tkinter import Tcl, Toplevel
@ -9,6 +8,9 @@ from typing import Literal, Union
from ttkthemes import ThemedTk
if sys.platform.startswith("win"):
from ctypes import byref, c_int, sizeof, windll
def theme_title_bar(window: Union[ThemedTk, Toplevel], mode: Literal["dark", "light"]) -> None:
"""