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

Specify preferred method for state-sharing between controls #63

Open
Revertron opened this issue Feb 16, 2019 · 1 comment
Open

Specify preferred method for state-sharing between controls #63

Revertron opened this issue Feb 16, 2019 · 1 comment
Labels
c-enhancement New feature or request p-medium Medium Priority x-help wanted Extra attention is needed
Milestone

Comments

@Revertron
Copy link

Revertron commented Feb 16, 2019

For example, I have 2 Comboboxes.
I need to enable/disable second Combobox based on choises in the first Combobox.

Or change some text on a Button in some Comboboxs on_selected() method.

How can I do this?

@NoraCodes
Copy link
Collaborator

You can't directly do that in the callback, with the current API. I would recommend having an external state which stores the enabled/disabled state of each combobox and an external update function which uses that external state.

We are looking into a different API for 0.4, however, which might enable this for you.

@NoraCodes NoraCodes added c-enhancement New feature or request x-help wanted Extra attention is needed p-medium Medium Priority labels Feb 26, 2019
@NoraCodes NoraCodes added this to the 0.5 Release milestone Feb 26, 2019
@NoraCodes NoraCodes changed the title An example to use one Control in another's Controls event Specify preferred method for state-sharing between controls Feb 26, 2019
@NoraCodes NoraCodes modified the milestones: 0.5 Release, 1.0 Release Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-enhancement New feature or request p-medium Medium Priority x-help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants