Skip to content

Programmatically click widgets from Python side? #1896

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

Closed
dsblank opened this issue Jan 9, 2018 · 6 comments
Closed

Programmatically click widgets from Python side? #1896

dsblank opened this issue Jan 9, 2018 · 6 comments
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone

Comments

@dsblank
Copy link

dsblank commented Jan 9, 2018

Is it possible to, say, programmatically click a Button widget?

@jasongrout
Copy link
Member

jasongrout commented Jan 9, 2018

Not currently from the python side.

@jasongrout jasongrout added this to the Reference milestone Jan 9, 2018
@dsblank
Copy link
Author

dsblank commented Jan 9, 2018

Any semi-easy way to fake it?

@jasongrout
Copy link
Member

Do you just want to call your on_click handler? Just do the same thing the code is doing:

self._click_handlers(self)

@jasongrout
Copy link
Member

Or call that message handling function with an appropriate dictionary

@dsblank
Copy link
Author

dsblank commented Jan 9, 2018

Thanks! I think I found a bug. Reporting...

@dsblank dsblank closed this as completed Jan 9, 2018
@jasongrout
Copy link
Member

Great, thanks!

I think I found a bug

For reference, this is presumably #1897.

@github-actions github-actions bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Feb 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

No branches or pull requests

2 participants