change tabview select method #1508

This commit is contained in:
Tom Schimansky 2023-04-29 01:38:55 +02:00
parent 86ba99c2ab
commit d3883012b7
1 changed files with 2 additions and 2 deletions

View File

@ -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()