Skip to content
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

AttributeError: module 'wx.html2' has no attribute 'New' #2548

Closed
Shadowbyte-Syndicate opened this issue Apr 14, 2024 · 1 comment
Closed

Comments

@Shadowbyte-Syndicate
Copy link

Operating system:
wxPython version & source:
Python version & source:

Description of the problem:

Code Example (click to expand)
# Put code sample here
@reticulatus
Copy link
Contributor

The wxPython documentation clearly shows that wx.html2 is a module that provides a number of classes. It is not intended to have a New attribute:

https://docs.wxpython.org/wx.html2.1moduleindex.html

The main class that is used to build an application is wx.html2.WebView and that class does have a New() method:

https://docs.wxpython.org/wx.html2.WebView.html#wx.html2.WebView.New

See the wxPython Demo for an example of how to use the wx.html2 module.

@swt2c swt2c closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants