Created
September 4, 2015 14:00
-
-
Save driscollis/01bc04141423eaf2fa73 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.html | |
| HTML_WINDOW_SIZE = (100, 200) | |
| TEXT1 = "TEXT number 1 2 3 4 5 6 7 8 9 " | |
| TEXT2 = "TEXT nember 2 3 4 5 6 7 8 9 " | |
| class MyFrame(wx.Frame): | |
| def __init__(self, parent): | |
| wx.Frame.__init__(self, parent) | |
| panel = wx.Panel(self) | |
| sizer = wx.BoxSizer(wx.VERTICAL) | |
| self.text1 = wx.html.HtmlWindow(panel, -1, size=HTML_WINDOW_SIZE) | |
| self.text1.SetPage(TEXT1) | |
| self.text2 = wx.html.HtmlWindow(panel, -1, size=HTML_WINDOW_SIZE) | |
| self.text2.SetPage(TEXT2) | |
| sizer.Add(self.text1, flag=wx.ALL , border=10) | |
| sizer.Add(self.text2, flag=wx.ALL , border=10) | |
| panel.SetSizer(sizer) | |
| panel.Layout() | |
| app = wx.App(False) | |
| f = MyFrame(None) | |
| f.Show() | |
| app.MainLoop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment