Can't get focus on Tabs instead a tab
Asked Answered
S

1

0

I have a tab in a tab that I want to use the grab_focus() method, but it never works. Here is an example of what I am doing:
keyboard_tab.grab_focus()
Please let me know if you have any questions!

Scornik answered 3/2 at 1:16 Comment(0)
S
0

I figured it out! Instead of trying to access the TabBar, just Access the container and access the tab_bar.
tab_container.get_tab_bar().grab_focus()

Scornik answered 3/2 at 4:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.