1
0
Fork 0

added basic UI

This commit is contained in:
Kim, Jimin 2022-02-03 08:02:52 +09:00
parent e089d9a8a9
commit 8223becd89
4 changed files with 19 additions and 0 deletions

View file

@ -11,6 +11,7 @@
"FOSS",
"noto",
"pamac",
"pytermgui",
"ungoogled"
],
"python.formatting.provider": "black"

View file

@ -1,5 +1,7 @@
from .initialize import initialize
from .ui.show_main_menu import show_main_menu
def entry():
initialize()
show_main_menu()

0
src/ui/__init__.py Normal file
View file

16
src/ui/show_main_menu.py Normal file
View file

@ -0,0 +1,16 @@
from argparse import ArgumentParser, Namespace
from subprocess import run
import pytermgui as ptg
def show_main_menu():
with ptg.WindowManager() as manager:
window = ptg.Window(
ptg.Label("[wm-title]menu"),
ptg.Label(),
ptg.Button("Exit!", lambda *_: manager.exit()),
)
manager.add(window)
manager.run()