From 11bd412ac5e86f6c951c9e26f9e92cee8591fd2d Mon Sep 17 00:00:00 2001 From: Nicolas Braun Date: Tue, 28 Jan 2025 17:12:40 +0100 Subject: [PATCH] Smaller wx import 2 --- gooey/python_bindings/argparse_to_json.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gooey/python_bindings/argparse_to_json.py b/gooey/python_bindings/argparse_to_json.py index 031fe8a..eff0e60 100644 --- a/gooey/python_bindings/argparse_to_json.py +++ b/gooey/python_bindings/argparse_to_json.py @@ -5,7 +5,7 @@ import argparse import json import os import sys -import wx +from wx import SystemSettings from argparse import ( _CountAction, _HelpAction, @@ -63,7 +63,7 @@ class UnsupportedConfiguration(Exception): # TODO: merge the default foreground and bg colors from the # baseline build_spec def item_default(): - use_dark_mode = wx.SystemSettings.GetAppearance().IsUsingDarkBackground() + use_dark_mode = SystemSettings.GetAppearance().IsUsingDarkBackground() return { 'error_color': '#ea7878', 'label_color': constants.COLOR_WHITE if use_dark_mode else constants.COLOR_BLACK, @@ -269,7 +269,7 @@ def reapply_mutex_groups(mutex_groups, action_groups): def categorize2(groups, widget_dict, options): - use_dark_mode = wx.SystemSettings.GetAppearance().IsUsingDarkBackground() + use_dark_mode = SystemSettings.GetAppearance().IsUsingDarkBackground() constants.COLOR_WHITE if use_dark_mode else constants.COLOR_BLACK