15 lines
325 B
Python
15 lines
325 B
Python
|
|
from textual.app import App, ComposeResult
|
||
|
|
|
||
|
|
from textual.widgets import Footer
|
||
|
|
from widgets.text_editor import TextEditor
|
||
|
|
|
||
|
|
|
||
|
|
class Berry(App):
|
||
|
|
def compose(self) -> ComposeResult:
|
||
|
|
yield TextEditor(language="python")
|
||
|
|
yield Footer()
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
app = Berry()
|
||
|
|
app.run()
|