Optimized screen draw. Only update needed rects

This commit is contained in:
Ander
2014-11-14 11:18:59 +01:00
parent 08da4995f1
commit 00b50c5202
10 changed files with 70 additions and 55 deletions

View File

@@ -21,8 +21,12 @@ class ListView():
self.set_list([])
self.selected = []
def get_dirty_area(self):
return self.screen_objects.get_dirty_area()
# Sets the list for the lisview. It should be an iterable of strings
def set_list(self, item_list):
self.screen_objects.clear()
self.list = item_list
self.list_size = len(item_list)
if self.max_rows < self.list_size: