Code cleanup

This commit is contained in:
9and3r
2014-08-04 13:46:07 +02:00
parent 3244b6577d
commit 9ade6ebf2d
4 changed files with 11 additions and 13 deletions

View File

@@ -1,7 +1,6 @@
import logging
from .screen_objects import ScreenObjectsManager, TouchAndTextItem, ScrollBar
from .touch_manager import TouchManager
from .screen_objects import ScreenObjectsManager, TouchAndTextItem, ScrollBar
logger = logging.getLogger(__name__)
@@ -50,8 +49,8 @@ class ListView():
width = self.size[0]
while i < self.list_size and z < self.max_rows:
item = TouchAndTextItem(self.font, self.list[i], (
self.pos[0], self.pos[1] + self.base_size * z),
(width, -1))
self.pos[0], self.pos[1] + self.base_size * z),
(width, -1))
self.screen_objects.set_touch_object(str(i), item)
i += 1
z += 1