wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.21k stars 509 forks source link

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

Open Shadowbyte-Syndicate opened 1 month ago

Shadowbyte-Syndicate commented 1 month ago

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

Description of the problem:

Code Example (click to expand) ```python # Put code sample here ```
reticulatus commented 1 month ago

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.