-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created draft TUI app and .tcss file with some arbitrary parameters f…
…or testing.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Screen { | ||
padding: 0; | ||
} | ||
TabbedContent { | ||
width: 100% | ||
} | ||
#create_text { | ||
text-style: italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from pathlib import Path | ||
|
||
from textual.app import App, ComposeResult | ||
from textual.widgets import Header, Label, TabbedContent, TabPane | ||
|
||
# from textual import events | ||
|
||
|
||
class MyApp(App): | ||
TITLE = "DataShuttle" | ||
|
||
tui_path = Path(__file__).parents[1] | ||
CSS_PATH = rf"{tui_path}\css\tab_content.tcss" | ||
|
||
def compose(self) -> ComposeResult: | ||
yield Header() | ||
# yield Label("Do you love DataShuttle?", id = "question") | ||
with TabbedContent(): | ||
with TabPane("Create", id="create"): | ||
yield Label("Create", id="create_text") | ||
with TabPane("Transfer", id="transfer"): | ||
yield Label("Transfer; Seems to work!") | ||
|
||
|
||
if __name__ == "__main__": | ||
app = MyApp() | ||
app.run() |