-
I'm trying to make a TUI that connects to a socketio server to send and recieve data, but I'm having issues getting them to both work at once. Because textual is within classes, socketio either can't call the event handlers, or can't query widgets and modify them. How could I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is the function I am using to connect to SocketIO in my app class. I figured out that if I make it an action and use the keypress to activate it, it works, but I can't do that in the final production app. Is there a way I could automatically run this?
|
Beta Was this translation helpful? Give feedback.
-
I got it working for now by replacing the handler with an "on_ready" event. Don't know how I missed that when reading through the API! |
Beta Was this translation helpful? Give feedback.
I got it working for now by replacing the handler with an "on_ready" event. Don't know how I missed that when reading through the API!