1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-30 14:32:08 -05:00
dotfiles/install.py

32 lines
667 B
Python
Raw Normal View History

2018-12-01 14:24:43 -05:00
#!/bin/python
import curses
from lib.parse import Category, Package, parse
from lib.menu import Menu
from lib.configure import configure
categories = parse('packages.yml')
def noop():
pass
class App:
def __init__(self, stdscreen):
self.screen = stdscreen
curses.curs_set(0)
submenu_items = [
('do stuff', noop)
]
submenu = Menu(self.screen, submenu_items)
main_menu_items = [
('install', noop),
('submenu', submenu.display)
]
main_menu = Menu(self.screen, main_menu_items)
main_menu.display()
if __name__ == '__main__':
curses.wrapper(App)