I created a dialog with an HTML window that shows exactly what I want to print. I tested two methods of how to print (after reading through a lot of stuff). Both methods just print out the plain html code but not the interpretation the HTML window is showing (self.html_page is a wx.html.HtmlWindow).
printout = wx.html.HtmlPrintout()
pd = wx.PrintDialog(self.frame)
printer = wx.Printer(pd.GetPrintDialogData())
test = html.HtmlEasyPrinting(self.frame.g_char.char_name, self.frame)
# Set some default printer and page options.
# Black and white printing if False.
It seems I do not understand what HTML printing means for wxPython? I thought if a class is named to print html it would do so. What did I get wrong? How to fix this?