2020-02-08 10:02:39 -06:00
|
|
|
#!/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
|
|
|
|
2020-02-08 10:02:39 -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
|
|
|
|
|
|
|
|
2020-02-08 10:02:39 -06:00
|
|
|
app = TableTrackerApplication()
|
|
|
|
app.run()
|