mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
no comment
This commit is contained in:
parent
af054f502c
commit
595e043613
@ -373,7 +373,7 @@ class CTkTabview(CTkBaseClass):
|
|||||||
else:
|
else:
|
||||||
return self._name_list[index]
|
return self._name_list[index]
|
||||||
|
|
||||||
def index(self, name=""):
|
def index(self, name: str ="") -> int:
|
||||||
""" returns index of selected tab, returns empty int if no tab selected\n
|
""" returns index of selected tab, returns empty int if no tab selected\n
|
||||||
if a name is defined, return the associated index """
|
if a name is defined, return the associated index """
|
||||||
if name == "":
|
if name == "":
|
||||||
@ -381,6 +381,6 @@ class CTkTabview(CTkBaseClass):
|
|||||||
else:
|
else:
|
||||||
return self._name_list.index(name)
|
return self._name_list.index(name)
|
||||||
|
|
||||||
def len(self):
|
def len(self) -> int:
|
||||||
""" return the number of defined tabs """
|
""" return the number of defined tabs """
|
||||||
return len(self._name_list)
|
return len(self._name_list)
|
Loading…
Reference in New Issue
Block a user