I use wxpthon library to write UI program in CentOS system wx.html2 . WebView control, the following error is prompted:
File "main.py", line 143, in <module>
frame = DemoFrame()
File "main.py", line 101, in __init__
self._mainPanel = MainPanel( self )
File "main.py", line 17, in __init__
self.view = wx.html2.WebView.New(self)
NotImplementedError
Part of my code is like this:
class MainPanel( sp.ScrolledPanel ):
#Main Panel
def __init__( self, parent ):
sp.ScrolledPanel.__init__( self, parent=parent )
self.SetupScrolling()
self.view = wx.html2.WebView.New(self)
self.view.LoadURL( "http://www.baidu.com" )
CentOS version:CentOS Linux release 8.2.2004 (Core)
Python version: Python 3.6.8
wxPython version: 4.1.1 gtk3 (phoenix) wxWidgets 3.1.5