[+] hide_topbar
This commit is contained in:
parent
766158b888
commit
a3e20d72ff
@ -14,6 +14,8 @@ class CTkLoadingBox(CTkToplevel):
|
|||||||
text: str = "CTkDialog",
|
text: str = "CTkDialog",
|
||||||
font: Optional[Union[tuple, CTkFont]] = None,
|
font: Optional[Union[tuple, CTkFont]] = None,
|
||||||
|
|
||||||
|
hide_topbar: bool = False,
|
||||||
|
|
||||||
fg_color: Optional[Union[str, Tuple[str, str]]] = None,
|
fg_color: Optional[Union[str, Tuple[str, str]]] = None,
|
||||||
text_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,
|
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_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)
|
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._running: bool = False
|
||||||
self._progress = 0
|
self._progress = 0
|
||||||
self._text = [text, ""]
|
self._text = [text, ""]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user