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

Problem with Numeric #465

Open
ppv-mipt opened this issue Sep 4, 2024 · 1 comment
Open

Problem with Numeric #465

ppv-mipt opened this issue Sep 4, 2024 · 1 comment

Comments

@ppv-mipt
Copy link

ppv-mipt commented Sep 4, 2024

The followin code is not working as expected in the app:

import mercury as mr
a = mr.Numeric(value=30, min=0, max=90, step=1)
b = mr.Button(label="Go")
if not b.clicked:
    mr.Stop()
c = mr.Button(label="Show")
if c.clicked:
    print(a.value)

If I first change the value of Numeric, then push the "Go" button, then press "Show" button, the value of numeric is not printed and the "Show" button disappears.
If I use Slider instead of Numeric, everything works fine.

@pplonski
Copy link
Contributor

pplonski commented Sep 5, 2024

Thank you @ppv-mipt for reporting the issue and thank you for code to reproduce the bug. I will take a look at it. Are you able to continue with Slider in your app?

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