(self)
| 25 | super().__init__() |
| 26 | |
| 27 | def run(self) -> None: |
| 28 | def write_stuff(text: str) -> None: |
| 29 | """Write stuff to a widget.""" |
| 30 | self.app.query_one(RichLog).write(text) |
| 31 | |
| 32 | self.app.call_from_thread(write_stuff, "Hello") |
| 33 | # Exit the app with a code we can assert |
| 34 | self.app.call_from_thread(self.app.exit, 123) |
| 35 | |
| 36 | class ThreadTestApp(App[object]): |
| 37 | """Trivial app with a single widget.""" |
no test coverage detected