<li><aclass="reference"href="#what-does-the-new-wx-package-do"id="id4"name="id4">What does the new wx package do?</a></li>
<li><aclass="reference"href="#will-any-of-this-effect-my-existing-code"id="id5"name="id5">Will any of this effect my existing code?</a></li>
<li><aclass="reference"href="#what-about-all-the-other-modules-like-grid-html-and-stc"id="id6"name="id6">What about all the other modules, like grid, html, and stc?</a></li>
<li><aclass="reference"href="#how-do-i-use-this-new-wx-package"id="id7"name="id7">How do I use this new wx package?</a></li>
<li><aclass="reference"href="#what-are-the-issues-with-converting-old-code-to-use-the-new-wx-package"id="id8"name="id8">What are the issues with converting old code to use the new wx package?</a></li>
<li><aclass="reference"href="#where-can-i-find-example-programs-using-the-new-wx-syntax"id="id9"name="id9">Where can I find example programs using the new wx syntax?</a></li>
<h1><aclass="toc-backref"href="#id6"name="what-about-all-the-other-modules-like-grid-html-and-stc">What about all the other modules, like grid, html, and stc?</a></h1>
<p>There's more to the old wxPython than just the wxPython.wx module.
And we've got those extra modules covered as well. Each of those
modules (as well as the lib subpackage) has been moved to the new wx
package and reverse-renamers have been placed in the wxPython package
<h1><aclass="toc-backref"href="#id8"name="what-are-the-issues-with-converting-old-code-to-use-the-new-wx-package">What are the issues with converting old code to use the new wx package?</a></h1>
<p>Obviously, you need to change your import statements from:</p>
<preclass="literal-block">
from wxPython import wx
</pre>
<p>or:</p>
<preclass="literal-block">
from wxPython.wx import *
</pre>
<p>to:</p>
<preclass="literal-block">
import wx
</pre>
<p>Then you need to refer to wx attributes without a "wx" prefix, such
as:</p>
<preclass="literal-block">
class MyFrame(wx.Frame):
</pre>
<p>In most cases, existing code can be modified with a simple search and
<h1><aclass="toc-backref"href="#id9"name="where-can-i-find-example-programs-using-the-new-wx-syntax">Where can I find example programs using the new wx syntax?</a></h1>
<p>Example programs are included in the wxPython/samples/wx_examples
directory, and are documented in the <aclass="reference"href="wxPythonExamples.html">wxPythonExamples</a> documentation
file. Also, all the code in the py package uses the new wx syntax.
You can learn more about these in the <aclass="reference"href="PyManual.html">PyManual</a>.</p>