From 8b6b93e87d35640c3d13ea92e46a208464a5cdab Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 8 Feb 2020 10:02:39 -0600 Subject: [PATCH] super basic skeleton, just loads an irssi-like UI it doesn't do anything at the moment --- bin/tabletracker | 15 +++++++++++++++ npytabletracker/__init__.py | 0 npytabletracker/ui.py | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100755 bin/tabletracker create mode 100644 npytabletracker/__init__.py create mode 100644 npytabletracker/ui.py 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