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 <ejjeliorja...@gmail.com> wrote:
> I found the problem now, and fixed it:
>
> hep = wx.wxHtmlEasyPrinting("My print's preview",myApp)
>  hep:SetHeader("@PAGENUM@/@pages...@. 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
> wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to