Skip to content

Instantly share code, notes, and snippets.

@frainfreeze
Created December 26, 2015 13:07
Show Gist options
  • Save frainfreeze/2bc1736e0b52ff61f8d1 to your computer and use it in GitHub Desktop.
Save frainfreeze/2bc1736e0b52ff61f8d1 to your computer and use it in GitHub Desktop.
colorschemedesigner application
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()
@frainfreeze
Copy link
Author

requires min. wxpthon 2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment