Mercurial > libervia-web
diff browser_side/menu.py @ 125:f9d63624699f
radio collective integration, first draft
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Jan 2012 00:22:03 +0100 |
parents | 500a1529c191 |
children | ddfcc4cb6cee |
line wrap: on
line diff
--- a/browser_side/menu.py Mon Dec 12 22:26:55 2011 +0100 +++ b/browser_side/menu.py Thu Jan 05 00:22:03 2012 +0100 @@ -82,6 +82,7 @@ menu_group = MenuBar(vertical=True) menu_group.addItem("join room", MenuCmd(self, "onJoinRoom")) + menu_group.addItem("Collective radio", MenuCmd(self, "onCollectiveRadio")) menu_games = MenuBar(vertical=True) menu_games.addItem("Tarot", MenuCmd(self, "onTarotGame")) @@ -229,7 +230,12 @@ _dialog.setHTML('Group discussions') _dialog.setWidget(_main_panel) _dialog.show() - + + def onCollectiveRadio(self): + def onContactsSelected(contacts): + print("let's go :)") + self.host.bridge.call('launchRadioCollective', None, contacts) + dialog.ContactsChooser(self.host, onContactsSelected, None, text="Please select contacts to invite").getContacts() #Game menu