New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is wx.html.HtmlPrintout abstract class in wxPython 4? #1060

Closed
Jenyay opened this Issue Oct 28, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@Jenyay
Copy link
Contributor

Jenyay commented Oct 28, 2018

Operating system: Ubuntu 18.04
wxPython version & source: wxPython 4.0.1
Python version & source: Python 3.6 stock.

I used the wx.html.HtmlPrintout class In wxPython 3.0.2. Is wx.html.HtmlPrintout abstract class in wxPython 4?

I started using HtmlEasyPrinting class instead, but HtmlEasyPrinting makes it impossible to set page margins and page range. Or are there such opportunities?

>>> import wx.html
>>> wx.html.HtmlPrintout()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: wx._html.HtmlPrintout represents a C++ abstract class and cannot be instantiated
@RobinD42

This comment has been minimized.

Copy link
Member

RobinD42 commented Oct 30, 2018

Is wx.html.HtmlPrintout abstract class in wxPython 4?

No, that's a mistake. I'll add a fix shortly.

@RobinD42

This comment has been minimized.

Copy link
Member

RobinD42 commented Oct 30, 2018

Fixed by #1064

@RobinD42 RobinD42 closed this Oct 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment