X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1bfae9d8310335453cb475d73a92a4b13d006dd..123908fc47164c4437202e96f8dffbbf6e096d5c:/wxPython/demo/wxHtmlWindow.py?ds=inline diff --git a/wxPython/demo/wxHtmlWindow.py b/wxPython/demo/wxHtmlWindow.py index bdafa03d36..5692a76b0b 100644 --- a/wxPython/demo/wxHtmlWindow.py +++ b/wxPython/demo/wxHtmlWindow.py @@ -13,7 +13,7 @@ from Main import opj # method in the C++ code...) class MyHtmlWindow(wxHtmlWindow): def __init__(self, parent, id, log): - wxHtmlWindow.__init__(self, parent, id) + wxHtmlWindow.__init__(self, parent, id, style=wxNO_FULL_REPAINT_ON_RESIZE) self.log = log EVT_SCROLLWIN( self, self.OnScroll ) @@ -45,7 +45,7 @@ class MyHtmlWindow(wxHtmlWindow): class TestHtmlPanel(wxPanel): def __init__(self, parent, frame, log): - wxPanel.__init__(self, parent, -1) + wxPanel.__init__(self, parent, -1, style=wxNO_FULL_REPAINT_ON_RESIZE) self.log = log self.frame = frame self.cwd = os.path.split(sys.argv[0])[0] @@ -158,6 +158,7 @@ class TestHtmlPanel(wxPanel): def runTest(frame, nb, log): win = TestHtmlPanel(nb, frame, log) + print wxWindow_FindFocus() return win