Hello,
I have a problem with a HTML window in a dialog box. If I use the following code everything seems to work OK.
dialog = wxDialog(self, -1, " Test ")
btnOK = wxButton(dialog, wxID_OK, "OK", wxPoint(150, 300))
box = wxBoxSizer(wxVERTICAL)
html = wxHtmlWindow(dialog, -1, size = (500,250))
name = os.path.join(self.cwd, 'data/main_doc.html')
html.LoadPage(name)
box.Add(html, 0, wxEXPAND)
btn = dialog.ShowModal()
dialog.Destroy()
However, if I subsitute the following using the MyHtmlWindow class from the demo all I get is a couple of white points in the
upper right hand corner of the dialog box. Even when I add a size parameter to the MyHtmlWindow class the problem
persists.
Can anyone tell me what I am doing wrong?
dialog = wxDialog(self, -1, " Test ")
btnOK = wxButton(dialog, wxID_OK, "OK", wxPoint(150, 300))
box = wxBoxSizer(wxVERTICAL)
html = MyHtmlWindow(dialog, -1, self.log) # <== substitution
name = os.path.join(self.cwd, 'data/main_doc.html')
html.LoadPage(name)
box.Add(html, 0, wxEXPAND)
btn = dialog.ShowModal()
dialog.Destroy()
cheers,
Kay
···
-----------------------------------------------------------------------
250 Visitenkarten GRATIS (zzgl. EUR 8,95 Porto)!
Hochwertige, vollfarbige Visitenkarten. Ideal für Privat & Büro.
http://www.nexgo.de/c/pub/redir.php/vistaprint
-----------------------------------------------------------------------