home *** CD-ROM | disk | FTP | other *** search
Wrap
# Source Generated with Decompyle++ # File: in.pyo (Python 2.5) from __future__ import with_statement import wx from gui import skin from gui.browser import BrowserFrame from gui.toolbox import persist_window_pos, snap_pref from logging import getLogger log = getLogger('webvideo') video_frame_url = 'http://v.digsby.com/embed.php?id=%(widget_id)s' video_frame_style = wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | wx.CLIP_CHILDREN | wx.STAY_ON_TOP video_frame_size = (542, 264) def confirm_invite(buddy_name): return wx.YES == wx.MessageBox(_('%s has invited you to an audio/video chat.\n\nWould you like to join?') % buddy_name, _('Audio/Video Chat Invitation'), style = wx.YES_NO) class VideoChatWindow(BrowserFrame): def __init__(self, title, widget_id, on_close = None): self.widget_url = video_frame_url % dict(widget_id = widget_id) BrowserFrame.__init__(self, None, name = 'Video Chat Window', title = title, url = self.widget_url, style = video_frame_style) self.on_close = on_close self.SetFrameIcon(skin.get('AppDefaults.TaskBarIcon')) persist_window_pos(self, position_only = True) snap_pref(self) self.SetClientSize(video_frame_size) log.debug('opening video embed url: %s' % self.widget_url) if on_close is not None: self.Bind(wx.EVT_CLOSE, self.OnClose) def OnClose(self, e): e.Skip() if self.on_close is not None: self.on_close()