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

PushButton clicked event is not triggered #463

Closed
hanjinliu opened this issue Oct 22, 2022 · 0 comments · Fixed by #464
Closed

PushButton clicked event is not triggered #463

hanjinliu opened this issue Oct 22, 2022 · 0 comments · Fixed by #464
Labels
bug Something isn't working

Comments

@hanjinliu
Copy link
Contributor

Describe the bug

In ipynb backend, clicking a PushButton does not trigger changed event. Callback functions are correctly triggered if the signal is programmatically emitted.

1.mp4

To Reproduce
Steps to reproduce the behavior:

Run following code in jupyter notebook or jupyter lab, and click the button.

from magicgui import magicgui, use_app
from magicgui.widgets import PushButton, Container, LineEdit

use_app("ipynb")

btn = PushButton(text="click")
line = LineEdit()

@btn.clicked.connect
def f():
    line.value = "a"

c = Container(widgets=[btn, line])
c.show(True)

Expected behavior
Event should be triggered.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Windows 11
  • backend: ipywidgets=8.0.2
  • magicgui version 0.6.0rc0
@hanjinliu hanjinliu added the bug Something isn't working label Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant