From: John L. <jla...@gm...> - 2009-02-03 03:43:43
|
I found another "fix" too. Do NOT ever use "wx.wxExit(0)" to close wxWidgets apps. There are a lot of things going on behind the scenes for GUI apps and you should call wxFrame::Destroy() if you want to close the app nicely, see also wxApp::ExitMainLoop(). In fact, your event handler for wx.wxEVT_CLOSE_WINDOW does nothing useful and you should remove it. Regards, John On Sun, Feb 1, 2009 at 5:21 AM, Éjjeli Őrjárat <ejj...@gm...> wrote: > I found the problem now, and fixed it: > > hep = wx.wxHtmlEasyPrinting("My print's preview",myApp) > hep:SetHeader("@PAGENUM@/@PAGESCNT@. page") > prnSetup = hep:GetPageSetupData() > prnData = hep:GetPrintData() > prnData:SetNoCopies(3) > > tMinoseg = > {wx.wxPRINT_QUALITY_DRAFT,wx.wxPRINT_QUALITY_LOW,wx.wxPRINT_QUALITY_MEDIUM,wx.wxPRINT_QUALITY_HIGH} > prnData:SetQuality(2) > prnSetup:SetMarginTopLeft(wx.wxPoint(12,12)) > > This works as it excepted, everything is OK now, no crash :-) > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > > |