Dynamic Textbox #4771
Dynamic Textbox
#4771
-
Hi there, how can I change the value of the my_message = lambda value: value
message_a = "text 1"
message_b = "text 2"
screens = [
Screen(
top=bar.Bar(
[
widget.TextBox(text=my_message(message_a)),
... |
Beta Was this translation helpful? Give feedback.
Answered by
elParaguayo
Apr 17, 2024
Replies: 1 comment 5 replies
-
Create your widget like this: widget.TextBox(text="text 1", name="textbox1") # give it a unique name if you have multiple textboxes. To update the text from the command line, do:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, if you're using a hook, then you can do something like this: