comparison frontends/wix/main_window.py @ 120:1ca5f254ce41

primitivus group chat & misc primitivus: new widget: SurroundedText (text with a character repeated around it) primitivus: new decorator LabelLine (like lineBox, but with a label on the top line) wix & primitivus & quick_app: group chat method move to quick_chat wix: when new message, window is not raised anymore, but RequestUserAttention is called instead
author Goffi <goffi@goffi.org>
date Thu, 08 Jul 2010 14:12:18 +0800
parents ded2431cea5a
children fdb961f27ae9
comparison
equal deleted inserted replaced
119:ded2431cea5a 120:1ca5f254ce41
440 def onJoinRoom(self, e): 440 def onJoinRoom(self, e):
441 warning('FIXME: temporary menu, must be improved') 441 warning('FIXME: temporary menu, must be improved')
442 #TODO: a proper MUC room joining dialog with nickname etc 442 #TODO: a proper MUC room joining dialog with nickname etc
443 dlg = wx.TextEntryDialog( 443 dlg = wx.TextEntryDialog(
444 self, _("Please enter MUC's JID"), 444 self, _("Please enter MUC's JID"),
445 _('Entering a MUC room'), _('test@conference.necton2.int')) 445 _('Entering a MUC room'), 'test@conference.necton2.int')
446 #_('Entering a MUC room'), _('room@muc_service.server.tld')) 446 #_('Entering a MUC room'), _('room@muc_service.server.tld'))
447 if dlg.ShowModal() == wx.ID_OK: 447 if dlg.ShowModal() == wx.ID_OK:
448 room_jid=JID(dlg.GetValue()) 448 room_jid=JID(dlg.GetValue())
449 if room_jid.is_valid(): 449 if room_jid.is_valid():
450 self.bridge.joinMUC(room_jid.domain, room_jid.node, self.profiles[self.profile]['whoami'].node, self.profile) 450 self.bridge.joinMUC(room_jid.domain, room_jid.node, self.profiles[self.profile]['whoami'].node, self.profile)