home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 June / maximum-cd-2009-06.iso / DiscContents / digsby_setup.exe / lib / gui / browser / __init__.pyo (.txt) next >
Encoding:
Python Compiled Bytecode  |  2009-02-26  |  1.3 KB  |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. import wx
  5. if 'wxMSW' in wx.PlatformInfo:
  6.     
  7.     def Browser(*a, **k):
  8.         IEWindow = IEWindow
  9.         import gui.browser.iewindow
  10.         return IEWindow(*a, **k)
  11.  
  12. elif 'wxMac' in wx.PlatformInfo:
  13.     
  14.     def Browser(*a, **k):
  15.         WebKitWindow = WebKitWindow
  16.         import gui.browser.mac_webkit
  17.         return WebKitWindow(*a, **k)
  18.  
  19. else:
  20.     raise NotImplementedError('no Browser interface implemented for this platform')
  21.  
  22. class BrowserFrame(wx.Frame):
  23.     
  24.     def __init__(self, parent, title = '', size = wx.DefaultSize, pos = wx.DefaultPosition, url = '', style = wx.DEFAULT_FRAME_STYLE, name = ''):
  25.         wx.Frame.__init__(self, parent, title = title, size = size, pos = pos, style = style, name = name)
  26.         self.browser = Browser(self, url = url)
  27.         self.OnDoc = self.browser.OnDoc
  28.  
  29.  
  30.