summaryrefslogtreecommitdiff
path: root/src/YalpClients/EflClient/medialist.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/YalpClients/EflClient/medialist.py')
-rw-r--r--src/YalpClients/EflClient/medialist.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/YalpClients/EflClient/medialist.py b/src/YalpClients/EflClient/medialist.py
index e4b29c6..0ea8f5f 100644
--- a/src/YalpClients/EflClient/medialist.py
+++ b/src/YalpClients/EflClient/medialist.py
@@ -9,13 +9,13 @@ import emotion
import evas
import elementary
-#import globals
-
-class Medias():
- def _init_(self):
- pass
+class Medias(object):
+ def __init__(self, win, c):
+ self.win = win
+ self.c = c
+ self.add_button()
- def huhu(obj, str, x):
+ def huhu(self, obj, str, x):
print "guck guck"
def fill_medialist(self, win, c):
@@ -47,9 +47,8 @@ class Medias():
medialist.go()
box0.show()
- def add_button(self, win, c):
- addbutton = elementary.Button(win)
+ def add_button(self):
+ addbutton = elementary.Button(self.win)
addbutton.label_set("Add to Playlist")
- c.part_swallow("medialist_buttonframe", addbutton)
+ self.c.part_swallow("medialist_buttonframe", addbutton)
addbutton.show()
-