Menu screen changed to ListView (GPIO button friendly)

This commit is contained in:
Ander
2015-04-06 01:08:31 +02:00
parent 392ed43113
commit 94f027f665
2 changed files with 30 additions and 61 deletions

View File

@@ -2,8 +2,12 @@
import unittest
import pygame
from mopidy_touchscreen import Extension
from mopidy_touchscreen.graphic_utils.list_view import ListView
# ,touch_screen as frontend_lib
@@ -28,4 +32,8 @@ class ExtensionTest(unittest.TestCase):
# self.assertIn('username', schema)
# self.assertIn('password', schema)
# TODO Write more tests
def test_list_view(self):
pygame.init()
font = pygame.font.SysFont("arial", 200/6)
list = ListView((0, 0), (200, 200), 200/6, font)
list.set_list(["item1", "item2", "item3"])