diff --git a/bin/tabletracker b/bin/tabletracker new file mode 100755 index 0000000..cb4b8a2 --- /dev/null +++ b/bin/tabletracker @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 +"""Bootstrap the application and start it.""" +import npyscreen + +from npytabletracker.ui import TableTrackerDisplay + +class TableTrackerApplication(npyscreen.NPSAppManaged): + """Combine the pieces of the application.""" + + def onStart(self): + """Link necessary UI elements and state management and whatnot.""" + self.addForm('MAIN', TableTrackerDisplay) + +app = TableTrackerApplication() +app.run() diff --git a/npytabletracker/__init__.py b/npytabletracker/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/npytabletracker/ui.py b/npytabletracker/ui.py new file mode 100644 index 0000000..20a5e9f --- /dev/null +++ b/npytabletracker/ui.py @@ -0,0 +1,6 @@ +"""UI elements for the npytabletracker application.""" +import npyscreen + +class TableTrackerDisplay(npyscreen.FormMuttActiveTraditional): + """Create the high level form, which is organized like mutt/irssi.""" + pass