diff options
| author | Nicole Vreden <damba@slartibartfast.traut> | 2010-02-20 14:08:53 +0100 |
|---|---|---|
| committer | Nicole Vreden <damba@slartibartfast.traut> | 2010-02-20 14:08:53 +0100 |
| commit | 2c6f463251056b7277f790716b4cb6cbc2fd217b (patch) | |
| tree | 79c66e1d46bfa63ea9a020c12ca1e606a7db35ef /src/YalpClients/EflClient/playlist.py | |
| parent | 47398dbe18e7adb6b6a1493f18fc98247450e798 (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/playlist.py')
| -rw-r--r-- | src/YalpClients/EflClient/playlist.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/YalpClients/EflClient/playlist.py b/src/YalpClients/EflClient/playlist.py index 242aa76..475b39e 100644 --- a/src/YalpClients/EflClient/playlist.py +++ b/src/YalpClients/EflClient/playlist.py @@ -15,13 +15,23 @@ class Selection(object): def __init__(self, win, c, stream): self.win = win self.c = c - self.vid = emotion.Emotion(win.canvas, module_filename="gstreamer") + #self.vid = emotion.Emotion(win.canvas, module_filename="gstreamer") self.stream = stream + self.add_button() self.play_video () - + self.c.signal_callback_add("mouse,clicked,1", "medialist_buttonframe", self.huhu) + + def add_button(self): + addbutton = elementary.Button(self.win) + addbutton.label_set("Play") + self.c.part_swallow("medialist_buttonframe", addbutton) + addbutton.show() + + def huhu(self): + print "huhu" + def play_video(self): print self.stream - # ip = self.stream[0][0].destIp THIS CHRASHES!!! -> I know :-) ip = "127.0.0.1" port = 9993 print "stream from", ip, port @@ -29,4 +39,4 @@ class Selection(object): self.c.part_swallow("video", self.vid) self.vid.show() self.vid.play = True - + |
