mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
console screenshot
This commit is contained in:
18
docs/examples/getting_started/console.py
Normal file
18
docs/examples/getting_started/console.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Simulates a screenshot of the Textual devtools
|
||||
|
||||
"""
|
||||
|
||||
from textual.app import App
|
||||
|
||||
from textual.devtools.renderables import DevConsoleHeader
|
||||
from textual.widgets import Static
|
||||
|
||||
|
||||
class ConsoleApp(App):
|
||||
def compose(self):
|
||||
self.dark = True
|
||||
yield Static(DevConsoleHeader())
|
||||
|
||||
|
||||
app = ConsoleApp()
|
||||
Reference in New Issue
Block a user