Widget text not getting synchronized value
See original GitHub issueHi, I tried to get fresh text.value after submitting…but it seems to give out old values (submitted previously or empty string)
text = widgets.Text()
display(text)
def handle_submit(sender):
print(text.value)
text.on_submit(handle_submit)
I actually follow the example from this website, and expect to have similar effect…
I installed ipywidgets through conda today (tried to pip install / install from git but failed, possibly because of some broken conda settings on my desktop…)
Just want to know if there’s a way to get synchronized text widget value ? Also, it seems that the on_submit event is outdated? Is there a better way to achieve the same submitting event?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to synchronise two TextFields in Flutter - Stack Overflow
I'd like to sync them so when user updates the net price, the gross price is automatically calculated and updated. When the user...
Read more >Widget Events — Jupyter Widgets 7.7.0 documentation
When synchronizing traitlets attributes, you may experience a lag because of the latency due to the roundtrip to the server side. You can...
Read more >auto_size_text | Flutter Package - Pub.dev
Flutter widget that automatically resizes text to fit perfectly within its bounds. ... Usually, this value should not be below 1 for best...
Read more >New Component: streamlit-ext, sync widgets' value with url
When widgets value changes, the url synced and if you open the url in new tab, every value keeped. Just import widgets from...
Read more >Offline-First | Mendix Documentation
Please note that a nanoflow object variable's value might become empty after synchronization, if the object is removed from the device during ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The recommended way to do this is to do something like:
Thanks for your recommendation! I tried to apply observe function before, but nothing happened after I click enter. It turns out that I need to click ctrl + enter to submit the text. Also, lots of thanks to ipywidgets developers! I am bad at web dev and this tool really helps me a lot to deliver a simple UI easily 👍