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:
parent
9155886c21
commit
df765b33dc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue