def __init__(self, parent, htpath):
            """Panel to contain webkit ctrl"""
            wx.Panel.__init__(self, parent)

            self.html_preview = WKHtmlWindow(self)
            self.html_preview.PizzaMagic()
            url = "file:" + urlFromPathname(htpath)
            self.html_preview.LoadUrl(url)
Example #2
0
        def __init__(self, parent, htpath):
            """Panel to contain webkit ctrl"""
            wx.Panel.__init__(self, parent)

            self.html_preview = WKHtmlWindow(self)
            self.html_preview.PizzaMagic()
            url = "file:" + urlFromPathname(htpath)
            self.html_preview.LoadUrl(url)
Example #3
0
def encodeSelection(editor):
    text = editor.GetSelectedText()
    url = urlFromPathname(text)
    editor.ReplaceSelection("file:%s" % url)
Example #4
0
def encodeSelection(editor):
    text = editor.GetSelectedText()
    url = urlFromPathname(text)
    editor.ReplaceSelection("file:%s" % url)