Mercurial > libervia-web
comparison browser_side/radiocol.py @ 284:bee4719af9b9
browser_side (plugin radiocol): info message when you start the radiocol
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 25 Nov 2013 21:04:09 +0100 |
parents | 0eba1c4f9c6f |
children | 4f0c2fea358a |
comparison
equal
deleted
inserted
replaced
283:0eba1c4f9c6f | 284:bee4719af9b9 |
---|---|
37 from __pyjamas__ import JS | 37 from __pyjamas__ import JS |
38 | 38 |
39 from jid import JID | 39 from jid import JID |
40 from tools import html_sanitize | 40 from tools import html_sanitize |
41 from tools import FilterFileUpload | 41 from tools import FilterFileUpload |
42 from sat_frontends.tools.misc import DEFAULT_MUC | |
42 | 43 |
43 | 44 |
44 class MetadataPanel(FlexTable): | 45 class MetadataPanel(FlexTable): |
45 | 46 |
46 def __init__(self): | 47 def __init__(self): |
206 self.current_player = None | 207 self.current_player = None |
207 for player in self.players: | 208 for player in self.players: |
208 self.right_panel.add(player) | 209 self.right_panel.add(player) |
209 self.addClickListener(self) | 210 self.addClickListener(self) |
210 | 211 |
212 help_msg = HTML("""- This radio plays Ogg Vorbis files.<br /> | |
213 - What's that? I only know MP3!<br /> | |
214 - Click <a style="color: red;">here</a> if you need some support :) | |
215 """) | |
216 help_msg.setStyleName('chatTextInfo-link') | |
217 help_msg.addClickListener(lambda: self._parent.host.bridge.call('joinMUC', None, DEFAULT_MUC, self._parent.nick)) | |
218 self._parent.content.add(help_msg) | |
219 | |
211 def pushNextSong(self, title): | 220 def pushNextSong(self, title): |
212 """Add a song to the left panel's next songs queue""" | 221 """Add a song to the left panel's next songs queue""" |
213 next_song = Label(title) | 222 next_song = Label(title) |
214 next_song.setStyleName("radiocol_next_song") | 223 next_song.setStyleName("radiocol_next_song") |
215 self.next_songs.append(next_song) | 224 self.next_songs.append(next_song) |