Skip to content
Snippets Groups Projects
Commit 6cc8c588 authored by iggy's avatar iggy Committed by q3k
Browse files

cleanup

parent b0c5fb6e
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -70,7 +70,6 @@ class HarmonicApp(Application):
pass
def main_foreground(self):
print ("hererer")
run()
app=HarmonicApp("harmonic")
\ No newline at end of file
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment