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

You cant programmatically add items to a ListBox that isn't enabled #483

Closed
martinohanlon opened this issue Aug 4, 2023 · 1 comment
Closed
Labels

Comments

@martinohanlon
Copy link
Collaborator

Describe the bug
If you try and modify items in a ListBox using ListBox.append / insert / remove nothing will happen if Listbox.enabled = False.

To Reproduce

from guizero import App, ListBox

a = App()
lb = ListBox(a, enabled= False)
lb.append("this wont work because the listbox isnt enabled")
a.display()

Expected behaviour

You should be able to add items programmatically regardless of the enabled state,

@martinohanlon
Copy link
Collaborator Author

Resolved

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

No branches or pull requests

1 participant