diff options
| author | Nicole Vreden <damba@mecka.net> | 2010-01-22 00:56:07 +0100 |
|---|---|---|
| committer | Nicole Vreden <damba@mecka.net> | 2010-01-22 00:56:07 +0100 |
| commit | 8c75b19a8fae32fbc1740b2c30570a5acdd6a6c1 (patch) | |
| tree | f8ad6fb74d344df321ac2d91419417a97fbcf8db /src/YalpClients/EflClient/medialist.py | |
| parent | 64a68b013f1b47059ccadbba1730995cc7b1c32d (diff) | |
Python-EFL-GUI: Classes
- new Class Medias
Signed-off-by: Nicole Vreden <damba@mecka.net>
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() + |
