~launchpad-p-s/sofastatistics/main

« back to all changes in this revision

Viewing changes to full_html.py

  • Committer: Grant Paton-Simpson
  • Date: 2009-05-19 04:21:43 UTC
  • Revision ID: g@ubuntu-20090519042143-p561mbokz3inefvd
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
import wx
 
3
 
 
4
import util
 
5
 
 
6
if util.in_windows():
 
7
    
 
8
    import wx.lib.iewin as ie
 
9
    
 
10
    class FullHTML(ie.IEHtmlWindow):
 
11
    
 
12
        def __init__(self, panel, size):
 
13
            ie.IEHtmlWindow.__init__(self, panel, -1, 
 
14
                                     size=wx.Size(size[0], size[1]))
 
15
        
 
16
        def ShowHTML(self, strHTML):
 
17
            self.LoadString(strHTML)
 
18
    
 
19
else:
 
20
    import wx.webview
 
21
    
 
22
    class FullHTML(wx.webview.WebView):
 
23
    
 
24
        def __init__(self, panel, size):
 
25
            wx.webview.WebView.__init__(self, panel, -1, size=size)
 
26
        
 
27
        def ShowHTML(self, strHTML):
 
28
            self.SetPageSource(strHTML)
 
29
 
 
30
    
 
 
b'\\ No newline at end of file'