-
-
Notifications
You must be signed in to change notification settings - Fork 995
Closed
Description
I'm trying to deploy a TUI that users will run over Guacamole. Unfortunately the mouse events are not captured.
This is the relevant environment information I get with hostnamectl
:
Virtualization: kvm
Operating System: Oracle Linux Server 9.5
Kernel: Linux 5.15.0-302.167.6.el9uek.x86_64
This is the python I'm using:
Python 3.9.21 (main, Dec 5 2024, 00:00:00)
[GCC 11.5.0 20240719 (Red Hat 11.5.0-2.0.1)] on linux
This is the basic py script I'm running:
from textual.app import App, ComposeResult
from textual.widgets import Static
from textual.containers import Container
from textual.events import Click
class ClickableText(Static):
def __init__(self):
super().__init__("Click me!", id="clickable-text")
def on_click(self, event: Click) -> None:
self.update("You clicked me!")
class TextChangeApp(App):
def compose(self) -> ComposeResult:
yield Container(ClickableText())
if __name__ == "__main__":
app = TextChangeApp()
app.run()
Any hint on why textual is not capturing the mouse click on the web hosted CLI?
Metadata
Metadata
Assignees
Labels
No labels