You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to integrate a TUI using textual to some of the BCC scripts I've written. However, BCC uses a blocking poll approach with a callback.
So a short snippet:
def callback():
}
# Update some TUI widget instead of doing a print() with some data
}
...
...
while 1:
try:
b.ring_buffer_poll() # This will call a previously assigned callback when something is in the buffer.
except KeyboardInterrupt:
break
...
I was wondering if someone can give some pointers on how I could simply integrate this with a textual App like approach.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I would like to integrate a TUI using textual to some of the BCC scripts I've written. However, BCC uses a blocking poll approach with a callback.
So a short snippet:
I was wondering if someone can give some pointers on how I could simply integrate this with a textual App like approach.
Thanks,
Eelco
Beta Was this translation helpful? Give feedback.
All reactions