From d3883012b74e2cab11af39392559a2ff510767a7 Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Sat, 29 Apr 2023 01:38:55 +0200 Subject: [PATCH] change tabview select method #1508 --- customtkinter/windows/widgets/ctk_tabview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customtkinter/windows/widgets/ctk_tabview.py b/customtkinter/windows/widgets/ctk_tabview.py index 75bde4b..376e738 100644 --- a/customtkinter/windows/widgets/ctk_tabview.py +++ b/customtkinter/windows/widgets/ctk_tabview.py @@ -99,9 +99,9 @@ class CTkTabview(CTkBaseClass): self._draw() def _segmented_button_callback(self, selected_name): + self._set_grid_tab_by_name(selected_name) + self._tab_dict[self._current_name].grid_forget() self._current_name = selected_name - self._grid_forget_all_tabs() - self._set_grid_tab_by_name(self._current_name) if self._command is not None: self._command()