diff options
| author | Nicole Vreden <damba@mecka.net> | 2010-01-24 22:06:50 +0100 |
|---|---|---|
| committer | Nicole Vreden <damba@mecka.net> | 2010-01-24 22:06:50 +0100 |
| commit | 4a6f590c48f73d245bd6059d99933868369b385b (patch) | |
| tree | c782f031a366a7f694c4cbc2fcac24302c537fb3 /src/YalpClients/EflClient/playlist.py | |
| parent | 8c75b19a8fae32fbc1740b2c30570a5acdd6a6c1 (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/playlist.py')
| -rw-r--r-- | src/YalpClients/EflClient/playlist.py | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/YalpClients/EflClient/playlist.py b/src/YalpClients/EflClient/playlist.py new file mode 100644 index 0000000..69f3ba3 --- /dev/null +++ b/src/YalpClients/EflClient/playlist.py @@ -0,0 +1,49 @@ +#!/usr/bin/env python + +import edje +import ecore.evas +import sys +import os +import ecore +import emotion +import evas +import elementary + +class Selection(object): + def __init__(self, win, c, vid): + self.win = win + self.c = c + self.vid = vid + self.add_button() + + def fill_playlist(self, obj, str, x): + playlist = elementary.List(self.win); + playlist.size_hint_weight_set(1.0, 1.0) + playlist.size_hint_align_set(-1.0, -1.0) + box1 = elementary.Box(self.win) + self.win.resize_object_add(box1) + self.c.part_swallow("playlist", playlist) + box1.pack_end(playlist) + playlist.show() + playlist.item_append(str, None, None, None) + playlist.go() + box1.show() + + def playbutton_clicked(self, obj, signal, source): + self.play_video() + + def play_video(self): + #vid = emotion.Emotion(win.canvas,module_filename="xine"); + self.vid.file_set("Lordi.mpg"); + self.c.part_swallow("video", self.vid) + self.vid.show() + self.vid.play = True + + def add_button(self): + playbutton = elementary.Button(self.win) + playbutton.label_set("Play") + self.c.part_swallow("playlist_buttonframe", playbutton) + self.c.signal_callback_add("mouse,clicked,1","playlist_buttonframe", + self.playbutton_clicked) + playbutton.show() + |
