Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls Tab, and the 'disabled' property #123

Open
eprparadocs opened this issue Apr 21, 2023 · 1 comment
Open

Controls Tab, and the 'disabled' property #123

eprparadocs opened this issue Apr 21, 2023 · 1 comment

Comments

@eprparadocs
Copy link

Thew doc says this: "Every control has disabled property which is false by default - control and all its children are enabled. " It turns out the ft.Tab() doesn't have a disabled property!

In fact to do something like disabling a tab requires jumping through some hoops to make it work. You actually have to create a container for the tab, and disables it.This is pretty bogus because the user can go to a tab that has been disabled. One can capture the on_selected property and force it to a particular value, but this too is bogus. What happens is the selected tab is displayed and then you force it to another tab.

It would be so much nicer if the Tab had the disabled property and just wouldn't allow the tab to be selected.

@goyalyashpal
Copy link

hey @eprparadocs can you share an illustrative example of its use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants