Skip to content
Snippets Groups Projects
Commit d901b0b3 authored by iggy's avatar iggy
Browse files

cleanup

parent 58bdbe21
Branches
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ class Application(): ...@@ -27,7 +27,7 @@ class Application():
condition=lambda e: e["type"]=="button" and e.get("from")==2 and e["change"] 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): def __repr__(self):
return "App "+self.title return "App "+self.title
...@@ -109,7 +109,6 @@ class Application(): ...@@ -109,7 +109,6 @@ class Application():
def _to_background(self): def _to_background(self):
self.state = STATE_BACKGROUND self.state = STATE_BACKGROUND
if self._events_foreground: if self._events_foreground:
print("baz")
self._set_events(self._events_foreground,False) self._set_events(self._events_foreground,False)
self.engine.register_main_loop(self.main_foreground,False) self.engine.register_main_loop(self.main_foreground,False)
...@@ -138,7 +137,6 @@ class Application(): ...@@ -138,7 +137,6 @@ class Application():
pass pass
def main_foreground(self): def main_foreground(self):
#print("nothing")
pass pass
def main_always(self): def main_always(self):
......
...@@ -70,7 +70,6 @@ class HarmonicApp(Application): ...@@ -70,7 +70,6 @@ class HarmonicApp(Application):
pass pass
def main_foreground(self): def main_foreground(self):
print ("hererer")
run() run()
app=HarmonicApp("harmonic") app=HarmonicApp("harmonic")
\ No newline at end of file
...@@ -47,11 +47,11 @@ class UIElement(): ...@@ -47,11 +47,11 @@ class UIElement():
def draw(self, offset=(0,0)): def draw(self, offset=(0,0)):
pos = (self.origin[0]+offset[0],self.origin[1]+offset[1]) pos = (self.origin[0]+offset[0],self.origin[1]+offset[1])
self._draw(pos)
for child in self.children: for child in self.children:
child.draw(pos) child.draw(pos)
self._draw(pos)
def _draw(self,pos): def _draw(self,pos):
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment