Outdated sample code and class names in http://docs.wxwidgets.org/stable/overview_python.html?

The sample code (DialogUnits.py) on “wxPython Overview” page can not run under wxPython 3.0.0.

···

Traceback (most recent call last):

File “DialogUnits.py”, line 2, in

from wxPython.wx import *

ImportError: No module named wxPython.wx


The same page is included in help file wx.chm shipped with “wxPython3.0 Docs Demos and Tools”.

Is there any updated version of this document?

It looks like this document page has never been updated to the new
namespace, i.e. whenever you see “from wxPython.wx”, don’t try to
use the code with 2.9+ as is but you need to change to ‘import wx’
and change code like wxFrame(… to wx.Frame(…
The current wxPython demo contains an updated version of the code
“your demo install path\wxPython3.0 Docs and
Demos\demo\DialogUnits.py”.
Werner

···

Hi,

  On 8/12/2014 11:48, 杭杰 wrote:

The sample code (DialogUnits.py) on " wxPython Overview"
page can not run under wxPython 3.0.0.


Traceback (most recent call last):

File “DialogUnits.py”, line 2, in

from wxPython.wx import *

ImportError: No module named wxPython.wx


        The same page is included

in help file wx.chm shipped with “wxPython3.0 Docs Demos
and Tools”.

Is there any updated version of this document?