summaryrefslogtreecommitdiff
path: root/src/YalpClients/EflClient/medialist.py
diff options
context:
space:
mode:
authorNicole Vreden <damba@mecka.net>2010-01-24 22:06:50 +0100
committerNicole Vreden <damba@mecka.net>2010-01-24 22:06:50 +0100
commit4a6f590c48f73d245bd6059d99933868369b385b (patch)
treec782f031a366a7f694c4cbc2fcac24302c537fb3 /src/YalpClients/EflClient/medialist.py
parent8c75b19a8fae32fbc1740b2c30570a5acdd6a6c1 (diff)
Python-EFL-GUI: new Classes
- Class Selection - Class Search - changed edje-findbutton to elementary.Button and added to Class Search Signed-off-by: Nicole Vreden <damba@mecka.net>
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()
-