Files
mopidy-touchscreen/mopidy_touchscreen/screens/base_screen.py
Ander e98e198224 Lower CPU usage
Screen will not be always updated
2015-05-19 17:04:47 +02:00

24 lines
497 B
Python

class BaseScreen():
update_all = 0
update_partial = 1
no_update = 2
def __init__(self, size, base_size, manager, fonts):
self.size = size
self.base_size = base_size
self.manager = manager
self.fonts = fonts
def update(self, surface, update_type, rects):
pass
def event(self, event):
pass
def change_screen(self, direction):
return False
def should_update(self):
return BaseScreen.update_partial