From 4a6f590c48f73d245bd6059d99933868369b385b Mon Sep 17 00:00:00 2001 From: Nicole Vreden Date: Sun, 24 Jan 2010 22:06:50 +0100 Subject: 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 --- src/YalpClients/EflClient/medialist.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/YalpClients/EflClient/medialist.py') 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() - -- cgit v1.2.3