fix ctypes import for unix

This commit is contained in:
hyugogirubato
2025-01-04 12:45:07 +01:00
parent d195e25043
commit c48d64cbe0
+5 -1
View File
@@ -4,9 +4,13 @@ import tkinter as tk
from io import BytesIO
from tkinter import ttk
from tkinter.constants import DISABLED, NORMAL
from ctypes import windll
from pathlib import Path
try:
from ctypes import windll
except ImportError:
windll = None # windll is not available on this platform
from PIL import Image, ImageTk
from cbz.comic import ComicInfo