[Question] Tabs: on_change event: How to retrieve the selected tab index? #1515
Answered
by
SKbarbon
RobertNeher
asked this question in
Q&A
-
QuestionHow do I get the index of the selected tab in on_change trigger (selceted_index)? Code sampledef onChange(e):
print(selected_index) Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
SKbarbon
Jun 23, 2023
Replies: 1 comment
-
On your function: selected_index = e.control.selected_index |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RobertNeher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@RobertNeher ,
On your function:
selected_index = e.control.selected_index