npytabletracker/bin/tabletracker

18 lines
438 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env python3
"""Bootstrap the application and start it."""
import npyscreen
from npytabletracker.ui import TableTrackerDisplay
2020-02-08 19:36:32 -06:00
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)
2020-02-08 19:36:32 -06:00
app = TableTrackerApplication()
app.run()