Replies: 1 comment
-
Broadcasting with 2.4 is quite complex, I would suggest waiting for the next release 3.0. You could also use the develop branch to try it now. To download, the develop version of Taipy Gui:
You define this variable to be shared by everyone and it will be automatically updated to every client. from taipy.gui import Gui, State
def on_action(state: State):
state.nb = state.nb+1
nb = 0
md = """
<|{nb}|> <|Refresh|button|on_action=on_action|>
"""
gui = Gui(page=md)
gui.add_shared_variable("nb")
gui.run() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to write a simple server to show the uptime of the system hosting the taipy gui server. Is this the proper use of the broadcast method?
If it is, it is NOT giving the expected result. I expected the uptime to update on all connected clients. Failing that, the uptime var should at least change on the client page reload.
The project looks very promising. I also applaud the name! Please continue the great work!
Beta Was this translation helpful? Give feedback.
All reactions