diff --git a/app.py b/app.py index 9410dfd..7f088de 100644 --- a/app.py +++ b/app.py @@ -10,10 +10,12 @@ from typing import Optional, Union # Tkinter import for folder/file dialog (Windows native dialog) +import platform try: import tkinter as tk from tkinter import filedialog - TKINTER_AVAILABLE = True + # macOSではTkinterダイアログを無効化(システム互換性の問題のため) + TKINTER_AVAILABLE = platform.system() == "Windows" except ImportError: TKINTER_AVAILABLE = False