summaryrefslogtreecommitdiff
path: root/src/YalpClients/EflClient/medialist.py
diff options
context:
space:
mode:
authorNicole Vreden <damba@slartibartfast.traut>2010-02-20 14:08:53 +0100
committerNicole Vreden <damba@slartibartfast.traut>2010-02-20 14:08:53 +0100
commit2c6f463251056b7277f790716b4cb6cbc2fd217b (patch)
tree79c66e1d46bfa63ea9a020c12ca1e606a7db35ef /src/YalpClients/EflClient/medialist.py
parent47398dbe18e7adb6b6a1493f18fc98247450e798 (diff)
Yalp-EFL-GUI: Bugfixing
- added Play-Button - hide Frames by clicking on Play-Button - show Frames by clicking on main-Frame Signed-off-by: Nicole Vreden <damba@slartibartfast.traut>
Diffstat (limited to 'src/YalpClients/EflClient/medialist.py')
-rw-r--r--src/YalpClients/EflClient/medialist.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/YalpClients/EflClient/medialist.py b/src/YalpClients/EflClient/medialist.py
index ac54a69..ff1a48b 100644
--- a/src/YalpClients/EflClient/medialist.py
+++ b/src/YalpClients/EflClient/medialist.py
@@ -13,26 +13,16 @@ class Medias(object):
def __init__(self, win, c):
self.win = win
self.c = c
- self.add_button()
self.medialist = elementary.List(self.win);
self.medialist.size_hint_weight_set(1.0, 1.0)
self.medialist.size_hint_align_set(-1.0, -1.0)
self.c.part_swallow("medialist", self.medialist)
- # ???:
- self.c.signal_callback_add("hide_frames", self.medialist.item,self.hide_frames)
-
+
def add_media(self, media):
self.medialist.item_append(media.result.name, None, None, media.callback)
self.medialist.show()
self.medialist.go()
-
-
- def add_button(self):
- addbutton = elementary.Button(self.win)
- addbutton.label_set("Add to Playlist")
- self.c.part_swallow("medialist_buttonframe", addbutton)
- addbutton.show()
-
+
def hide_frames(self, obj, signal, source):
self.c.signal_emit("signal_from_python", "")