diff options
Diffstat (limited to 'src/YalpClients/EflClient/medialist.py')
| -rw-r--r-- | src/YalpClients/EflClient/medialist.py | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/YalpClients/EflClient/medialist.py b/src/YalpClients/EflClient/medialist.py new file mode 100644 index 0000000..e4b29c6 --- /dev/null +++ b/src/YalpClients/EflClient/medialist.py @@ -0,0 +1,55 @@ +#!/usr/bin/env python + +import edje +import ecore.evas +import sys +import os +import ecore +import emotion +import evas +import elementary + +#import globals + +class Medias(): + def _init_(self): + pass + + def huhu(obj, str, x): + print "guck guck" + + def fill_medialist(self, win, c): + items = [("huhu", self.huhu), + ("haha", self.huhu), + ("hoho", self.huhu), + ("hehe", self.huhu), + ("hihi", self.huhu), + ("12345", self.huhu), + ("abcde", self.huhu), + ("fghij", self.huhu), + ("klmno", self.huhu), + ("pqrst", self.huhu), + ("uvwxyz", self.huhu)] + + medialist = elementary.List(win); + medialist.size_hint_weight_set(1.0, 1.0) + medialist.size_hint_align_set(-1.0, -1.0) + box0 = elementary.Box(win) + win.resize_object_add(box0) + c.part_swallow("medialist", medialist) + box0.pack_end(medialist) + medialist.show() + + for item in items: + #print item[0] + medialist.item_append(item[0], None, None, item[1]) + + medialist.go() + box0.show() + + def add_button(self, win, c): + addbutton = elementary.Button(win) + addbutton.label_set("Add to Playlist") + c.part_swallow("medialist_buttonframe", addbutton) + addbutton.show() + |
