Created
December 26, 2015 13:07
-
-
Save frainfreeze/2bc1736e0b52ff61f8d1 to your computer and use it in GitHub Desktop.
colorschemedesigner application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
import wx.html2 | |
class MyBrowser(wx.Dialog): | |
def __init__(self, *args, **kwds): | |
wx.Dialog.__init__(self, *args, **kwds) | |
sizer = wx.BoxSizer(wx.VERTICAL) | |
self.browser = wx.html2.WebView.New(self) | |
sizer.Add(self.browser, 1, wx.EXPAND, 10) | |
self.SetSizer(sizer) | |
self.SetSize((1200, 700)) | |
if __name__ == '__main__': | |
app = wx.App() | |
dialog = MyBrowser(None, -1) | |
dialog.browser.LoadURL("http://colorschemedesigner.com/csd-3.5/") | |
dialog.Show() | |
app.MainLoop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
requires min. wxpthon 2.9