removed CTkFiledialog, add filedialog

This commit is contained in:
TomSchimansky
2022-11-12 14:01:54 +01:00
parent e269091ffe
commit 2f27611f3e
4 changed files with 22 additions and 50 deletions

View File

@ -1,3 +1,4 @@
import tkinter
from typing import Union, Tuple, Dict, List, Callable, Optional
from .theme.theme_manager import ThemeManager
@ -208,6 +209,7 @@ class CTkTabview(CTkBaseClass):
fill=self._apply_appearance_mode(self._border_color),
outline=self._apply_appearance_mode(self._border_color))
self._canvas.configure(bg=self._apply_appearance_mode(self._bg_color))
tkinter.Frame.configure(self, bg=self._apply_appearance_mode(self._bg_color)) # configure bg color of tkinter.Frame, cuase canvas does not fill frame
def configure(self, require_redraw=False, **kwargs):
if "corner_radius" in kwargs:

View File

@ -155,7 +155,6 @@ class ScalingTracker:
for window in cls.window_widgets_dict:
if window.winfo_exists() and not window.state() == "iconic":
current_dpi_scaling_value = cls.get_window_dpi_scaling(window)
print("current dpi:", current_dpi_scaling_value)
if current_dpi_scaling_value != cls.window_dpi_scaling_dict[window]:
cls.window_dpi_scaling_dict[window] = current_dpi_scaling_value