Fixed windows-only import
This commit is contained in:
parent
2cb04531c6
commit
cb1d5bea6d
@ -1,7 +1,6 @@
|
|||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
import sv_ttk
|
import sv_ttk
|
||||||
from ctypes import byref, c_int, sizeof, windll
|
|
||||||
from distutils.version import StrictVersion as Version
|
from distutils.version import StrictVersion as Version
|
||||||
from os import system
|
from os import system
|
||||||
from tkinter import Tcl, Toplevel
|
from tkinter import Tcl, Toplevel
|
||||||
@ -9,6 +8,9 @@ from typing import Literal, Union
|
|||||||
|
|
||||||
from ttkthemes import ThemedTk
|
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:
|
def theme_title_bar(window: Union[ThemedTk, Toplevel], mode: Literal["dark", "light"]) -> None:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user