Using latest versions of Python (2.7) and wxPython(2.8) I get the folowing error when I "PreviewText" using "HTMLEasyPrinting". In the init I have tried "parentWindow=None", "parentWindow=frame", etc. No Luck.
Does anyone have a workaround for this annoying problem. (It is documented elsewhere => "FRAME_FLOAT_ON_PARENT")
RR
C:\K>Print_Dialog.py
Traceback (most recent call last):
File "C:\K\Print_Dialog.py", line 37, in PreviewText
self.html_printer.PreviewText("TEXT", "doc_name")
File "C:\K\Print_Dialog.py", line 59, in PreviewText
HtmlEasyPrinting.PreviewText(self, self.GetHtmlText(text))
File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\html.py", line 1352, in PreviewText
return _html.HtmlEasyPrinting_PreviewText(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed at ..\..\src\msw\toplevel.cpp(301) in wxTopLevelWindow
MSW::MSWGetParent(): wxFRAME_FLOAT_ON_PARENT but no parent?