diff --git a/python_payload/application.py b/python_payload/application.py index f7bd5e7425c38b68a47d11df41786dc46f154647..9751a9a7f304588bd529f058d73fad80ad8d0990 100644 --- a/python_payload/application.py +++ b/python_payload/application.py @@ -27,7 +27,7 @@ class Application(): condition=lambda e: e["type"]=="button" and e.get("from")==2 and e["change"] )) - self.ui.add(ui.Icon(label=self.title)) + self.ui.add(ui.Icon(label=self.title, size=100)) def __repr__(self): return "App "+self.title @@ -109,7 +109,6 @@ class Application(): def _to_background(self): self.state = STATE_BACKGROUND if self._events_foreground: - print("baz") self._set_events(self._events_foreground,False) self.engine.register_main_loop(self.main_foreground,False) @@ -138,7 +137,6 @@ class Application(): pass def main_foreground(self): - #print("nothing") pass def main_always(self): diff --git a/python_payload/harmonic_demo.py b/python_payload/harmonic_demo.py index 95e73355e5525b444c7987b9b1c44546460c4a7b..372c6e5016b302659106739d30b74ed2e9ceceb9 100644 --- a/python_payload/harmonic_demo.py +++ b/python_payload/harmonic_demo.py @@ -70,7 +70,6 @@ class HarmonicApp(Application): pass def main_foreground(self): - print ("hererer") run() app=HarmonicApp("harmonic") \ No newline at end of file diff --git a/python_payload/ui.py b/python_payload/ui.py index 3f8a79df7491c802ffe753ee88d7b8b74a72550a..b3d3bebb6269d49920151e5922880d3f8efa4a1a 100644 --- a/python_payload/ui.py +++ b/python_payload/ui.py @@ -47,11 +47,11 @@ class UIElement(): def draw(self, offset=(0,0)): pos = (self.origin[0]+offset[0],self.origin[1]+offset[1]) - + self._draw(pos) for child in self.children: child.draw(pos) - self._draw(pos) + def _draw(self,pos): pass