~launchpad-p-s/sofastatistics/main

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import wx

import util

if util.in_windows():
    
    import wx.lib.iewin as ie
    
    class FullHTML(ie.IEHtmlWindow):
    
        def __init__(self, panel, size):
            ie.IEHtmlWindow.__init__(self, panel, -1, 
                                     size=wx.Size(size[0], size[1]))
        
        def ShowHTML(self, strHTML):
            self.LoadString(strHTML)
    
else:
    import wx.webview
    
    class FullHTML(wx.webview.WebView):
    
        def __init__(self, panel, size):
            wx.webview.WebView.__init__(self, panel, -1, size=size)
        
        def ShowHTML(self, strHTML):
            self.SetPageSource(strHTML)