From f2a0dddf2d34f2f47f21524b6ce5ad258b93b3c7 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Fri, 14 May 2021 16:34:58 -0400 Subject: [PATCH] Fix for getting wrong Tab ID in Tab.update --- PySimpleGUI.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 39d656e6..0bd39de9 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.41.2 Released 12-May-2021" +version = __version__ = "4.41.2.0 Unreleased\nFix for getting wrong tab number in Tab.update" __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -5786,7 +5786,8 @@ class Tab(Element): if title is not None: self.Title = str(title) - self.ParentNotebook.tab(self.ContainerElemementNumber-1, text=self.Title) + self.ParentNotebook.tab(self.TabID, text=self.Title) + # self.ParentNotebook.tab(self.ContainerElemementNumber-1, text=self.Title) # if visible is False: # self.ParentNotebook.pack_forget()