display: add get_status method

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Janar Sööt 2019-06-02 16:31:14 +03:00 committed by Kevin O'Connor
parent 9155886c21
commit df765b33dc
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ class PrinterLCD:
self.message = None self.message = None
# Start screen update timer # Start screen update timer
self.reactor.update_timer(self.screen_update_timer, self.reactor.NOW) self.reactor.update_timer(self.screen_update_timer, self.reactor.NOW)
def get_status(self, eventtime):
return {
'progress': self.progress or 0,
'message': self.message or ''
}
# Get menu instance # Get menu instance
def get_menu(self): def get_menu(self):
return self.menu return self.menu