[+] hide_topbar

This commit is contained in:
Maxim Khomutov 2025-03-19 14:28:29 +03:00
parent 766158b888
commit a3e20d72ff

View File

@ -14,6 +14,8 @@ class CTkLoadingBox(CTkToplevel):
text: str = "CTkDialog",
font: Optional[Union[tuple, CTkFont]] = None,
hide_topbar: bool = False,
fg_color: Optional[Union[str, Tuple[str, str]]] = None,
text_color: Optional[Union[str, Tuple[str, str]]] = None,
button_fg_color: Optional[Union[str, Tuple[str, str]]] = None,
@ -36,6 +38,9 @@ class CTkLoadingBox(CTkToplevel):
self._entry_border_color = ThemeManager.theme["CTkEntry"]["border_color"] if entry_border_color is None else self._check_color_type(entry_border_color)
self._entry_text_color = ThemeManager.theme["CTkEntry"]["text_color"] if entry_text_color is None else self._check_color_type(entry_text_color)
if hide_topbar:
self.overrideredirect(True)
self._running: bool = False
self._progress = 0
self._text = [text, ""]