Merge pull request #1796 from PySimpleGUI/Dev-latest

Renamed GetCurrentIndex to GetCurrentlySelectedTabIndex
This commit is contained in:
MikeTheWatchGuy 2019-08-08 16:28:24 -04:00 committed by GitHub
commit cad420723c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3578,7 +3578,7 @@ class TabGroup(Element):
print('Exception Selecting Tab {}'.format(e)) print('Exception Selecting Tab {}'.format(e))
def GetCurrentIndex(self): def GetCurrentlySelectedTabIndex(self):
""" """
Returns the "index" of the currently selected tab in this TabGroup. Indexes start at 0. Returns None if there is an error. Returns the "index" of the currently selected tab in this TabGroup. Indexes start at 0. Returns None if there is an error.

View File

@ -2267,7 +2267,7 @@ class TabGroup(Element):
except: except:
pass pass
def GetCurrentIndex(self): def GetCurrentlySelectedTabIndex(self):
try: try:
index = self.QT_QTabWidget.currentIndex() index = self.QT_QTabWidget.currentIndex()
except: except: