updated ReST docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4,17 +4,17 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
<meta name="generator" content="Docutils 0.3.1: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils 0.3.1: http://docutils.sourceforge.net/" />
|
||||||
<title>Building wxPython 2.5 for Development and Testing</title>
|
<title>Building wxPython 2.6 for Development and Testing</title>
|
||||||
<link rel="stylesheet" href="default.css" type="text/css" />
|
<link rel="stylesheet" href="default.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="document" id="building-wxpython-2-5-for-development-and-testing">
|
<div class="document" id="building-wxpython-2-6-for-development-and-testing">
|
||||||
<h1 class="title">Building wxPython 2.5 for Development and Testing</h1>
|
<h1 class="title">Building wxPython 2.6 for Development and Testing</h1>
|
||||||
<p>This file describes how I build wxWidgets and wxPython while doing
|
<p>This file describes how I build wxWidgets and wxPython while doing
|
||||||
development and testing, and is meant to help other people that want
|
development and testing, and is meant to help other people that want
|
||||||
to do the same thing. I'll assume that you are using either a CVS
|
to do the same thing. I'll assume that you are using either a CVS
|
||||||
snapshot from <a class="reference" href="http://wxWidgets.org/snapshots/">http://wxWidgets.org/snapshots/</a>, a checkout from CVS, or
|
snapshot from <a class="reference" href="http://wxWidgets.org/snapshots/">http://wxWidgets.org/snapshots/</a>, a checkout from CVS, or
|
||||||
one of the released wxPython-src-2.5.* tarballs. I'll also assume that
|
one of the released wxPython-src-2.6.* tarballs. I'll also assume that
|
||||||
you know your way around your system, the compiler, etc. and most
|
you know your way around your system, the compiler, etc. and most
|
||||||
importantly, that you know what you are doing! ;-)</p>
|
importantly, that you know what you are doing! ;-)</p>
|
||||||
<p>If you want to also install the version of wxPython you build to be in
|
<p>If you want to also install the version of wxPython you build to be in
|
||||||
@@ -71,7 +71,7 @@ before:</p>
|
|||||||
cd $WXDIR
|
cd $WXDIR
|
||||||
mkdir bld
|
mkdir bld
|
||||||
cd bld
|
cd bld
|
||||||
../configure --prefix=/opt/wx/2.5 \
|
../configure --prefix=/opt/wx/2.6 \
|
||||||
--with-gtk \
|
--with-gtk \
|
||||||
--with-opengl \
|
--with-opengl \
|
||||||
--enable-debug \
|
--enable-debug \
|
||||||
@@ -92,11 +92,11 @@ to the monolithic build of wxWidgets just add this configure flag:</p>
|
|||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
--enable-monolithic \
|
--enable-monolithic \
|
||||||
</pre>
|
</pre>
|
||||||
<p>By default GTK2 will be selected if its development pacakge is
|
<p>By default GTK 2.x will be used for the build. If you woudl rather
|
||||||
installed on your build system. To force the use of GTK 1.2.x
|
use GTK 1.2.x for some reason then you can force configure to use
|
||||||
instead add this flag:</p>
|
it by changing the --with-gtk flag to specify it like this:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
--disable-gtk2 \
|
--with-gtk=1 \
|
||||||
</pre>
|
</pre>
|
||||||
<p>To make the wxWidgets build be unicode enabled (strongly
|
<p>To make the wxWidgets build be unicode enabled (strongly
|
||||||
recommended if you are building with GTK2) then add the following.
|
recommended if you are building with GTK2) then add the following.
|
||||||
@@ -107,14 +107,14 @@ will actually be unicode objects.:</p>
|
|||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
--enable-unicode \
|
--enable-unicode \
|
||||||
</pre>
|
</pre>
|
||||||
<p>Notice that I used a prefix of /opt/wx/2.5. You can use whatever
|
<p>Notice that I used a prefix of /opt/wx/2.6. You can use whatever
|
||||||
path you want, such as a path in your HOME dir or even one of the
|
path you want, such as a path in your HOME dir or even one of the
|
||||||
standard prefix paths such as /usr or /usr/local if you like, but
|
standard prefix paths such as /usr or /usr/local if you like, but
|
||||||
using /opt this way lets me easily have multiple versions and ports
|
using /opt this way lets me easily have multiple versions and ports
|
||||||
of wxWidgets "installed" and makes it easy to switch between them,
|
of wxWidgets "installed" and makes it easy to switch between them,
|
||||||
without impacting any versions of wxWidgets that may have been
|
without impacting any versions of wxWidgets that may have been
|
||||||
installed via an RPM or whatever. For the rest of the steps below
|
installed via an RPM or whatever. For the rest of the steps below
|
||||||
be sure to also substitute "/opt/wx/2.5" with whatever prefix you
|
be sure to also substitute "/opt/wx/2.6" with whatever prefix you
|
||||||
choose for your build.</p>
|
choose for your build.</p>
|
||||||
<p>If you want to use the image and zlib libraries included with
|
<p>If you want to use the image and zlib libraries included with
|
||||||
wxWidgets instead of those already installed on your system, (for
|
wxWidgets instead of those already installed on your system, (for
|
||||||
@@ -146,9 +146,9 @@ the execute bit on .make first!:</p>
|
|||||||
.make install
|
.make install
|
||||||
</pre>
|
</pre>
|
||||||
<p>When it's done you should have an installed set of files under
|
<p>When it's done you should have an installed set of files under
|
||||||
/opt/wx/2.5 containing just wxWidgets. Now to use this version of
|
/opt/wx/2.6 containing just wxWidgets. Now to use this version of
|
||||||
wxWidgets you just need to add /opt/wx/2.5/bin to the PATH and set
|
wxWidgets you just need to add /opt/wx/2.6/bin to the PATH and set
|
||||||
LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH on OS X) to /opt/wx/2.5/lib.</p>
|
LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH on OS X) to /opt/wx/2.6/lib.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">I also have a script to help me build wxPython and it is checked in
|
<li><p class="first">I also have a script to help me build wxPython and it is checked in
|
||||||
to the CVS as wxWidgets/wxPython/b, but you probably don't want to
|
to the CVS as wxWidgets/wxPython/b, but you probably don't want to
|
||||||
@@ -177,7 +177,7 @@ python2.3 setup.py build_ext --inplace --debug
|
|||||||
other version of it found first, then you can add this to the
|
other version of it found first, then you can add this to the
|
||||||
command line to ensure your new one is used instead:</p>
|
command line to ensure your new one is used instead:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
WX_CONFIG=/opt/wx/2.5/bin/wx-config
|
WX_CONFIG=/opt/wx/2.6/bin/wx-config
|
||||||
</pre>
|
</pre>
|
||||||
<p>By default setup.py will assume that you built wxWidgets to use
|
<p>By default setup.py will assume that you built wxWidgets to use
|
||||||
GTK2. If you built wxWidgets to use GTK 1.2.x then you should add
|
GTK2. If you built wxWidgets to use GTK 1.2.x then you should add
|
||||||
@@ -210,7 +210,7 @@ located in the wx package.</p>
|
|||||||
PYTHONPATH to the wxPython dir located in the source tree. For
|
PYTHONPATH to the wxPython dir located in the source tree. For
|
||||||
example:</p>
|
example:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
export LD_LIBRARY_PATH=/opt/wx/2.5/lib
|
export LD_LIBRARY_PATH=/opt/wx/2.6/lib
|
||||||
export PYTHONPATH=$WXDIR/wxPython
|
export PYTHONPATH=$WXDIR/wxPython
|
||||||
cd $WXDIR/wxPython/demo
|
cd $WXDIR/wxPython/demo
|
||||||
python2.3 demo.py
|
python2.3 demo.py
|
||||||
|
@@ -11,7 +11,72 @@
|
|||||||
<div class="document" id="recent-changes-for-wxpython">
|
<div class="document" id="recent-changes-for-wxpython">
|
||||||
<h1 class="title">Recent Changes for wxPython</h1>
|
<h1 class="title">Recent Changes for wxPython</h1>
|
||||||
<div class="section" id="id1">
|
<div class="section" id="id1">
|
||||||
<h1><a name="id1">2.5.5.0</a></h1>
|
<h1><a name="id1">2.6.0.0</a></h1>
|
||||||
|
<p>wxMSW: Fixed wx.TransientPopupWindow (and therefore wx.TipWindow) to
|
||||||
|
auto-dismiss when the mouse is clicked outside of the popup like it is
|
||||||
|
supposed to.</p>
|
||||||
|
<p>wxMSW: Fixed bug #1167891 wx.Notebook display problem with wx.NB_MULTILINE.</p>
|
||||||
|
<p>wxMSW: Fixed bad cliping of hidden windows inside of wx.StaticBox.</p>
|
||||||
|
<p>wxGTK: The configure flags for selecting GTK+ 1.2.x or 2.x has
|
||||||
|
changed slightly. It is now --with-gtk[=VERSION] where VERSION is
|
||||||
|
either '1', '2' or 'any'. The default is '2'.</p>
|
||||||
|
<p>wx.stc.StyledTextCtrl: Added the following methods for alternate ways
|
||||||
|
to set and fetch text from the document buffer. They work similarly
|
||||||
|
to the existing methods of the same name, except that they don't go
|
||||||
|
through the same string/unicode <--> wxString conversions. The "Raw"
|
||||||
|
methods will do no conversions at all and in a unicode build of
|
||||||
|
wxPython the strings will be in the utf-8 encoding and in an ansi
|
||||||
|
build no assumption is made about the encoding. The "UTF8" functions
|
||||||
|
will attempt to always get/set utf-8 text, which it will always be
|
||||||
|
able to do in a unicode build, and in an ansi build it will depend on
|
||||||
|
the content of the utf-8 used being compatible with the current
|
||||||
|
encoding, (you'll get an exception otherwise.)</p>
|
||||||
|
<blockquote>
|
||||||
|
<table border class="table">
|
||||||
|
<colgroup>
|
||||||
|
<col width="49%" />
|
||||||
|
<col width="51%" />
|
||||||
|
</colgroup>
|
||||||
|
<tbody valign="top">
|
||||||
|
<tr><td>AddTextRaw</td>
|
||||||
|
<td>AddTextUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>InsertTextRaw</td>
|
||||||
|
<td>InsertTextUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>GetCurLineRaw</td>
|
||||||
|
<td>GetCurLineUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>GetLineRaw</td>
|
||||||
|
<td>GetLineUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>GetSelectedTextRaw</td>
|
||||||
|
<td>GetSelectedTextUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>GetTextRangeRaw</td>
|
||||||
|
<td>GetTextRangeUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>SetTextRaw</td>
|
||||||
|
<td>SetTextUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>GetTextRaw</td>
|
||||||
|
<td>GetTextUTF8</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>AppendTextRaw</td>
|
||||||
|
<td>AppendTextUTF8</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</blockquote>
|
||||||
|
<p>wx.stc.StyledTextCtrl: Added the StyleSetFontEncoding(style, enc)
|
||||||
|
method that allows you to set the encoding to be used by the font for
|
||||||
|
a particular style.</p>
|
||||||
|
<p>wxMac: Fixed wx.ComboBox to forward the EVT_CHAR, EVT_KEY_DOWN,
|
||||||
|
EVT_KEY_UP and EVT_TEXT events from its embedded text control.</p>
|
||||||
|
<p>wxMac: Corrected refresh bugs in wxGrid.</p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="id2">
|
||||||
|
<h1><a name="id2">2.5.5.1</a></h1>
|
||||||
<p>wxMSW: Fixed bug #1022383, 'several ComboBoxes appear selected'</p>
|
<p>wxMSW: Fixed bug #1022383, 'several ComboBoxes appear selected'</p>
|
||||||
<p>wx.grid.Grid: Fixed bug #1163384. Moved the code that handles
|
<p>wx.grid.Grid: Fixed bug #1163384. Moved the code that handles
|
||||||
activating the cell editors to a EVT_CHAR event handler. This is done
|
activating the cell editors to a EVT_CHAR event handler. This is done
|
||||||
@@ -76,8 +141,8 @@ list of top-level windows that currently exist in the application.</p>
|
|||||||
folks.</p>
|
folks.</p>
|
||||||
<p>Added the ActiveGrid IDE as a sample application.</p>
|
<p>Added the ActiveGrid IDE as a sample application.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id2">
|
<div class="section" id="id3">
|
||||||
<h1><a name="id2">2.5.4.1</a></h1>
|
<h1><a name="id3">2.5.4.1</a></h1>
|
||||||
<p>wx.Sizer Add, Insert, and Prepend functions now return a reference to the
|
<p>wx.Sizer Add, Insert, and Prepend functions now return a reference to the
|
||||||
wx.SizerItem that was added to the sizer, and the wx.SizerItem has a
|
wx.SizerItem that was added to the sizer, and the wx.SizerItem has a
|
||||||
GetRect accessor to give the position of the item on the parent window.</p>
|
GetRect accessor to give the position of the item on the parent window.</p>
|
||||||
@@ -88,7 +153,7 @@ consecutive (there may be intervening controls). Without this fix, an
|
|||||||
out-of-sync assert is generated when clicking on a radio button and
|
out-of-sync assert is generated when clicking on a radio button and
|
||||||
then calling GetValue().</p>
|
then calling GetValue().</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Some XRC changes: </dt>
|
<dt>Some XRC changes:</dt>
|
||||||
<dd><ul class="first last simple">
|
<dd><ul class="first last simple">
|
||||||
<li>Added 'icon' property to wxFrame and wxDialog</li>
|
<li>Added 'icon' property to wxFrame and wxDialog</li>
|
||||||
<li>No longer ignores menu bitmaps on non-MSW platforms</li>
|
<li>No longer ignores menu bitmaps on non-MSW platforms</li>
|
||||||
@@ -307,8 +372,8 @@ wx.Image.</p>
|
|||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id3">
|
<div class="section" id="id4">
|
||||||
<h1><a name="id3">2.5.3.1</a></h1>
|
<h1><a name="id4">2.5.3.1</a></h1>
|
||||||
<p>wxMac focus and border refreshes corrected.</p>
|
<p>wxMac focus and border refreshes corrected.</p>
|
||||||
<p>Updated internal PNG library.</p>
|
<p>Updated internal PNG library.</p>
|
||||||
<p>wxMac fix for metal appearance on wx.ToolBar.</p>
|
<p>wxMac fix for metal appearance on wx.ToolBar.</p>
|
||||||
@@ -461,8 +526,8 @@ it.</p>
|
|||||||
<p>wxPython on OSX can now be built in Unicode mode, can support multiple
|
<p>wxPython on OSX can now be built in Unicode mode, can support multiple
|
||||||
version installs, and comes with an uninstaller script.</p>
|
version installs, and comes with an uninstaller script.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id4">
|
<div class="section" id="id5">
|
||||||
<h1><a name="id4">2.5.2.8</a></h1>
|
<h1><a name="id5">2.5.2.8</a></h1>
|
||||||
<p>Predominantly a bug-fix release.</p>
|
<p>Predominantly a bug-fix release.</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
@@ -490,8 +555,8 @@ wxCheckListBox.</li>
|
|||||||
</ul>
|
</ul>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id5">
|
<div class="section" id="id6">
|
||||||
<h1><a name="id5">2.5.2.7</a></h1>
|
<h1><a name="id6">2.5.2.7</a></h1>
|
||||||
<p>wx.ADJUST_MINSIZE is now the default behaviour for window items in
|
<p>wx.ADJUST_MINSIZE is now the default behaviour for window items in
|
||||||
sizers. This means that the item's GetMinSize and/or GetBestSize will
|
sizers. This means that the item's GetMinSize and/or GetBestSize will
|
||||||
be called when calculating layout and the return value from that will
|
be called when calculating layout and the return value from that will
|
||||||
@@ -586,8 +651,8 @@ in the PyShell:</p>
|
|||||||
<p>wxGTK: Applied wxNO_BORDER patch (#1098374) for text control and combo
|
<p>wxGTK: Applied wxNO_BORDER patch (#1098374) for text control and combo
|
||||||
box.</p>
|
box.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id6">
|
<div class="section" id="id7">
|
||||||
<h1><a name="id6">2.5.1.5</a></h1>
|
<h1><a name="id7">2.5.1.5</a></h1>
|
||||||
<p>(See also the <a class="reference" href="MigrationGuide.html">MigrationGuide</a> file for details about some of the
|
<p>(See also the <a class="reference" href="MigrationGuide.html">MigrationGuide</a> file for details about some of the
|
||||||
big changes that have happened in this release and how you should
|
big changes that have happened in this release and how you should
|
||||||
adapt your code.)</p>
|
adapt your code.)</p>
|
||||||
@@ -668,8 +733,8 @@ migrating away from using activexwrapper as well. Please see the
|
|||||||
MigrationGuide for more details on using the new module.</p>
|
MigrationGuide for more details on using the new module.</p>
|
||||||
<p>Floats are allowed again as function parameters where ints are expected.</p>
|
<p>Floats are allowed again as function parameters where ints are expected.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id8">
|
<div class="section" id="id9">
|
||||||
<h1><a name="id8">2.4.2.4</a></h1>
|
<h1><a name="id9">2.4.2.4</a></h1>
|
||||||
<p>Use wxSTC in the demo for displaying the soucre code of the samples.</p>
|
<p>Use wxSTC in the demo for displaying the soucre code of the samples.</p>
|
||||||
<p>Lots of bug fixes and such from the wxWindows folks.</p>
|
<p>Lots of bug fixes and such from the wxWindows folks.</p>
|
||||||
<p>Added wxPython.lib.newevent from Miki Tebeka. Its usage is
|
<p>Added wxPython.lib.newevent from Miki Tebeka. Its usage is
|
||||||
@@ -678,8 +743,8 @@ demonstrated in the Threads sample in the demo.</p>
|
|||||||
<p>Added wxMaskedNumCtrl.</p>
|
<p>Added wxMaskedNumCtrl.</p>
|
||||||
<p>Added Chris Barker's FloatCanvas.</p>
|
<p>Added Chris Barker's FloatCanvas.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id9">
|
<div class="section" id="id10">
|
||||||
<h1><a name="id9">2.4.1.2</a></h1>
|
<h1><a name="id10">2.4.1.2</a></h1>
|
||||||
<p>Added wxScrolledPanel from Will Sadkin</p>
|
<p>Added wxScrolledPanel from Will Sadkin</p>
|
||||||
<p>Added SetShape method to top level windows (e.g. wxFrame.)</p>
|
<p>Added SetShape method to top level windows (e.g. wxFrame.)</p>
|
||||||
<p>Changed wxSWIG to not generate Python code using apply, (since it will
|
<p>Changed wxSWIG to not generate Python code using apply, (since it will
|
||||||
@@ -730,8 +795,8 @@ release,) SetItemMinSize can now take a wxSize (or 2-tuple) parameter,
|
|||||||
and Spacers can be specified with a wxSize (or 2-tuple) parameter</p>
|
and Spacers can be specified with a wxSize (or 2-tuple) parameter</p>
|
||||||
<p>Added wxCursorFromBits.</p>
|
<p>Added wxCursorFromBits.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id10">
|
<div class="section" id="id11">
|
||||||
<h1><a name="id10">2.4.0.7</a></h1>
|
<h1><a name="id11">2.4.0.7</a></h1>
|
||||||
<p>Gave up on generating a warning upon the use of the old true/false or
|
<p>Gave up on generating a warning upon the use of the old true/false or
|
||||||
TRUE/FALSE values.</p>
|
TRUE/FALSE values.</p>
|
||||||
<p>Fixed wxGenericTreeCtrl (used on wxGTK and wxMac for wxTreeCtrl) so
|
<p>Fixed wxGenericTreeCtrl (used on wxGTK and wxMac for wxTreeCtrl) so
|
||||||
@@ -761,8 +826,8 @@ think I am testing in the future...</p>
|
|||||||
<p>Updated pycolourchooser.</p>
|
<p>Updated pycolourchooser.</p>
|
||||||
<p>Updated to 0.9b of PyCrust.</p>
|
<p>Updated to 0.9b of PyCrust.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id11">
|
<div class="section" id="id12">
|
||||||
<h1><a name="id11">2.4.0.4</a></h1>
|
<h1><a name="id12">2.4.0.4</a></h1>
|
||||||
<p>Added missing wxRect methods</p>
|
<p>Added missing wxRect methods</p>
|
||||||
<p>Add OOR support for wxApp objects too.</p>
|
<p>Add OOR support for wxApp objects too.</p>
|
||||||
<p>Added wxCursorFromImage, which works on wxMSW and wxGTK so far.</p>
|
<p>Added wxCursorFromImage, which works on wxMSW and wxGTK so far.</p>
|
||||||
@@ -818,25 +883,25 @@ doesn't have a standard place for them.</p>
|
|||||||
<p>Fixed typemaps for wxGridCellCoordsArray.</p>
|
<p>Fixed typemaps for wxGridCellCoordsArray.</p>
|
||||||
<p>Updated to the 0.9a version of PyCrust</p>
|
<p>Updated to the 0.9a version of PyCrust</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id12">
|
<div class="section" id="id13">
|
||||||
<h1><a name="id12">2.4.0.2</a></h1>
|
<h1><a name="id13">2.4.0.2</a></h1>
|
||||||
<p>Several bug fixes.</p>
|
<p>Several bug fixes.</p>
|
||||||
<p>Added wxIntCtrl from Will Sadkin.</p>
|
<p>Added wxIntCtrl from Will Sadkin.</p>
|
||||||
<p>Added wxPyColourChooser by Michael Gilfix.</p>
|
<p>Added wxPyColourChooser by Michael Gilfix.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id13">
|
<div class="section" id="id14">
|
||||||
<h1><a name="id13">2.4.0.1</a></h1>
|
<h1><a name="id14">2.4.0.1</a></h1>
|
||||||
<p>No major new features since 2.3.4.2, mostly bug fixes and minor
|
<p>No major new features since 2.3.4.2, mostly bug fixes and minor
|
||||||
enhancements.</p>
|
enhancements.</p>
|
||||||
<p>Added function wrappers for the common dialogs from Kevin Altis. See
|
<p>Added function wrappers for the common dialogs from Kevin Altis. See
|
||||||
wxPython/lib/dialogs.py for more details.</p>
|
wxPython/lib/dialogs.py for more details.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id14">
|
<div class="section" id="id15">
|
||||||
<h1><a name="id14">2.3.4.2</a></h1>
|
<h1><a name="id15">2.3.4.2</a></h1>
|
||||||
<p>Various bug fixes.</p>
|
<p>Various bug fixes.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id15">
|
<div class="section" id="id16">
|
||||||
<h1><a name="id15">2.3.4.1</a></h1>
|
<h1><a name="id16">2.3.4.1</a></h1>
|
||||||
<p>Updated XRCed and wxTimeCtrl contribs.</p>
|
<p>Updated XRCed and wxTimeCtrl contribs.</p>
|
||||||
<p>Show a couple new wxGrid features in the demo.</p>
|
<p>Show a couple new wxGrid features in the demo.</p>
|
||||||
<p>Several bug fixes in wxWindows.</p>
|
<p>Several bug fixes in wxWindows.</p>
|
||||||
@@ -890,8 +955,8 @@ windows when desired.</p>
|
|||||||
HTMLHelp viewer does. Changed how the wxPythonDocs tarball is built
|
HTMLHelp viewer does. Changed how the wxPythonDocs tarball is built
|
||||||
and added a script to launch the doc viewer.</p>
|
and added a script to launch the doc viewer.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id16">
|
<div class="section" id="id17">
|
||||||
<h1><a name="id16">2.3.3.1</a></h1>
|
<h1><a name="id17">2.3.3.1</a></h1>
|
||||||
<p>Added wxSplashScreen.</p>
|
<p>Added wxSplashScreen.</p>
|
||||||
<p>Added wxGenericDirCtrl.</p>
|
<p>Added wxGenericDirCtrl.</p>
|
||||||
<p>Added wxMultiChoiceDialog.</p>
|
<p>Added wxMultiChoiceDialog.</p>
|
||||||
@@ -1033,15 +1098,15 @@ example.</p>
|
|||||||
<p>Added wxPython.lib.mixins.rubberband module from Robb Shecter.</p>
|
<p>Added wxPython.lib.mixins.rubberband module from Robb Shecter.</p>
|
||||||
<p>Added wxTimeCtrl from Will Sadkin.</p>
|
<p>Added wxTimeCtrl from Will Sadkin.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id17">
|
<div class="section" id="id18">
|
||||||
<h1><a name="id17">2.3.2.1</a></h1>
|
<h1><a name="id18">2.3.2.1</a></h1>
|
||||||
<p>Changed (again) how the Python global interpreter lock is handled as
|
<p>Changed (again) how the Python global interpreter lock is handled as
|
||||||
well as the Python thread state. This time it works on SMP machines
|
well as the Python thread state. This time it works on SMP machines
|
||||||
without barfing and is also still compatible with Python debuggers.</p>
|
without barfing and is also still compatible with Python debuggers.</p>
|
||||||
<p>Added some patches from library contributors.</p>
|
<p>Added some patches from library contributors.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id18">
|
<div class="section" id="id19">
|
||||||
<h1><a name="id18">2.3.2</a></h1>
|
<h1><a name="id19">2.3.2</a></h1>
|
||||||
<p>Added EVT_HELP, EVT_HELP_RANGE, EVT_DETAILED_HELP,
|
<p>Added EVT_HELP, EVT_HELP_RANGE, EVT_DETAILED_HELP,
|
||||||
EVT_DETAILED_HELP_RANGE, EVT_CONTEXT_MENU, wxHelpEvent,
|
EVT_DETAILED_HELP_RANGE, EVT_CONTEXT_MENU, wxHelpEvent,
|
||||||
wxContextMenuEvent, wxContextHelp, wxContextHelpButton, wxTipWindow,
|
wxContextMenuEvent, wxContextHelp, wxContextHelpButton, wxTipWindow,
|
||||||
@@ -1123,8 +1188,8 @@ SendCommand method, but it is still quite powerful. See
|
|||||||
wxPython/contrib/dllwidget and wxPython/demo/dllwidget for more
|
wxPython/contrib/dllwidget and wxPython/demo/dllwidget for more
|
||||||
details.</p>
|
details.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id19">
|
<div class="section" id="id20">
|
||||||
<h1><a name="id19">2.3.1</a></h1>
|
<h1><a name="id20">2.3.1</a></h1>
|
||||||
<p>Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
|
<p>Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
|
||||||
code can get access to the edit control when it is created, (to push
|
code can get access to the edit control when it is created, (to push
|
||||||
on a custom event handler for example.)</p>
|
on a custom event handler for example.)</p>
|
||||||
@@ -1137,8 +1202,8 @@ subclass wxXmlResourceHandler, etc...</p>
|
|||||||
<p>Fixed img2py to work correctly with Python 2.1.</p>
|
<p>Fixed img2py to work correctly with Python 2.1.</p>
|
||||||
<p>Added enhanced wxVTKRenderWindow by Prabhu Ramachandran</p>
|
<p>Added enhanced wxVTKRenderWindow by Prabhu Ramachandran</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id20">
|
<div class="section" id="id21">
|
||||||
<h1><a name="id20">2.3.0</a></h1>
|
<h1><a name="id21">2.3.0</a></h1>
|
||||||
<p>Removed initial startup dependency on the OpenGL DLLs so only the
|
<p>Removed initial startup dependency on the OpenGL DLLs so only the
|
||||||
glcanvasc.pyd depends on them, (on wxMSW.)</p>
|
glcanvasc.pyd depends on them, (on wxMSW.)</p>
|
||||||
<p>Changed wxFont, wxPen, wxBrush to not implicitly use the
|
<p>Changed wxFont, wxPen, wxBrush to not implicitly use the
|
||||||
@@ -1234,13 +1299,13 @@ please send it to me for inclusion in this package.</p>
|
|||||||
by having smaller functional apps to play with. They can be found in
|
by having smaller functional apps to play with. They can be found in
|
||||||
wxPython/samples.</p>
|
wxPython/samples.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id21">
|
<div class="section" id="id22">
|
||||||
<h1><a name="id21">2.2.6</a></h1>
|
<h1><a name="id22">2.2.6</a></h1>
|
||||||
<p>No changes happened in the Python wrappers for this release, only
|
<p>No changes happened in the Python wrappers for this release, only
|
||||||
changes and fixes in the wxWindows library.</p>
|
changes and fixes in the wxWindows library.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="id22">
|
<div class="section" id="id23">
|
||||||
<h1><a name="id22">2.2.5</a></h1>
|
<h1><a name="id23">2.2.5</a></h1>
|
||||||
<p>New typemaps for wxString when compiling for Python 2.0 and beyond
|
<p>New typemaps for wxString when compiling for Python 2.0 and beyond
|
||||||
that allow Unicode objects to be passed as well as String objects. If
|
that allow Unicode objects to be passed as well as String objects. If
|
||||||
a Unicode object is passed PyString_AsStringAndSize is used to convert
|
a Unicode object is passed PyString_AsStringAndSize is used to convert
|
||||||
|
@@ -4,12 +4,12 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
<meta name="generator" content="Docutils 0.3.1: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils 0.3.1: http://docutils.sourceforge.net/" />
|
||||||
<title>Installing wxPython 2.5 from Source</title>
|
<title>Installing wxPython 2.6 from Source</title>
|
||||||
<link rel="stylesheet" href="default.css" type="text/css" />
|
<link rel="stylesheet" href="default.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="document" id="installing-wxpython-2-5-from-source">
|
<div class="document" id="installing-wxpython-2-6-from-source">
|
||||||
<h1 class="title">Installing wxPython 2.5 from Source</h1>
|
<h1 class="title">Installing wxPython 2.6 from Source</h1>
|
||||||
<p>This document will describe the few differences and additions to the
|
<p>This document will describe the few differences and additions to the
|
||||||
content in the <a class="reference" href="BUILD.html">BUILD</a> document for installing wxPython built from
|
content in the <a class="reference" href="BUILD.html">BUILD</a> document for installing wxPython built from
|
||||||
source. Please follow the intstructions both in this file and in
|
source. Please follow the intstructions both in this file and in
|
||||||
@@ -49,7 +49,7 @@ find the wxWidgets shared libraries. You can hard code the library
|
|||||||
path into the binaries by using the rpath option when configuring
|
path into the binaries by using the rpath option when configuring
|
||||||
wxWidgets. For example:</p>
|
wxWidgets. For example:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
--enable-rpath=/opt/wx/2.5/lib \
|
--enable-rpath=/opt/wx/2.6/lib \
|
||||||
</pre>
|
</pre>
|
||||||
<p>SOLARIS NOTE: The --enable-rpath option may cause problems when
|
<p>SOLARIS NOTE: The --enable-rpath option may cause problems when
|
||||||
using wxGTK on Solaris when compiling wxPython as described below.
|
using wxGTK on Solaris when compiling wxPython as described below.
|
||||||
|
@@ -4,14 +4,14 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
<meta name="generator" content="Docutils 0.3.1: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils 0.3.1: http://docutils.sourceforge.net/" />
|
||||||
<title>wxPython 2.5 Migration Guide</title>
|
<title>wxPython 2.6 Migration Guide</title>
|
||||||
<link rel="stylesheet" href="default.css" type="text/css" />
|
<link rel="stylesheet" href="default.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="document" id="wxpython-2-5-migration-guide">
|
<div class="document" id="wxpython-2-6-migration-guide">
|
||||||
<h1 class="title">wxPython 2.5 Migration Guide</h1>
|
<h1 class="title">wxPython 2.6 Migration Guide</h1>
|
||||||
<p>This document will help explain some of the major changes in wxPython
|
<p>This document will help explain some of the major changes in wxPython
|
||||||
2.5 since the 2.4 series and let you know what you need to do to adapt
|
2.6 since the 2.4 series and let you know what you need to do to adapt
|
||||||
your programs to those changes. Be sure to also check in the <a class="reference" href="CHANGES.html">CHANGES</a>
|
your programs to those changes. Be sure to also check in the <a class="reference" href="CHANGES.html">CHANGES</a>
|
||||||
file like usual to see info about the not so major changes and other
|
file like usual to see info about the not so major changes and other
|
||||||
things that have been added to wxPython.</p>
|
things that have been added to wxPython.</p>
|
||||||
@@ -304,7 +304,7 @@ SetClippingRect(self, rect)
|
|||||||
<p>wxPython's setup.py script now expects to use existing libraries for
|
<p>wxPython's setup.py script now expects to use existing libraries for
|
||||||
the contribs (gizmos, stc, xrc, etc.) rather than building local
|
the contribs (gizmos, stc, xrc, etc.) rather than building local
|
||||||
copies of them. If you build your own copies of wxPython please be
|
copies of them. If you build your own copies of wxPython please be
|
||||||
aware that you now need to also build the ogl, stc, xrc, and gizmos
|
aware that you now need to also build the stc, xrc, animate and gizmos
|
||||||
libraries in addition to the main wx lib.</p>
|
libraries in addition to the main wx lib.</p>
|
||||||
<p>The wxPython.h and other header files are now in
|
<p>The wxPython.h and other header files are now in
|
||||||
.../wxPython/include/wx/wxPython instead of in wxPython/src. You
|
.../wxPython/include/wx/wxPython instead of in wxPython/src. You
|
||||||
@@ -622,18 +622,20 @@ fully transparent.</li>
|
|||||||
<div class="section" id="ogl-is-dead-long-live-ogl">
|
<div class="section" id="ogl-is-dead-long-live-ogl">
|
||||||
<h1><a name="ogl-is-dead-long-live-ogl">OGL is dead! LONG LIVE OGL!</a></h1>
|
<h1><a name="ogl-is-dead-long-live-ogl">OGL is dead! LONG LIVE OGL!</a></h1>
|
||||||
<p><strong>[Changed in 2.5.2.x]</strong></p>
|
<p><strong>[Changed in 2.5.2.x]</strong></p>
|
||||||
<p>The wx.ogl module has been deprecated in favor of the new Python port
|
<p>The wx.ogl module was deprecated in version 2.5.2 in favor of the new
|
||||||
of the OGL library located at wx.lib.ogl contributed by Pierre Hj<48>lm.
|
Python port of the OGL library located at wx.lib.ogl contributed by
|
||||||
This will hopefully greatly extend the life of OGL within wxPython by
|
Pierre Hj<48>lm. Starting in version 2.5.5 the old ogl is no longer
|
||||||
making it more easily maintainable and less prone to getting rusty as
|
being built in the distributed binaries, however the source code is
|
||||||
there seems to be less and less interest in maintaining the C++
|
still in the source tree so people can built it themselves if desired.</p>
|
||||||
version.</p>
|
<p>The reason this changes was done was to greatly extend the life of OGL
|
||||||
|
within wxPython by making it more easily maintainable and less prone
|
||||||
|
to getting rusty as there seems to be less and less interest in
|
||||||
|
maintaining the C++ version.</p>
|
||||||
<p>There are only a few known compatibility issues at this time. First
|
<p>There are only a few known compatibility issues at this time. First
|
||||||
is that the ogl.DrawnShape has not been reimplemented yet. Next is the
|
is the location of OGL. The old version was located in the
|
||||||
location of OGL. The deprecated version is located in the wx.ogl
|
wx.ogl module, and the new version is in the wx.lib.ogl package. So
|
||||||
module, and the new version is in the wx.lib.ogl package. So this
|
this just means that to start using the new version you need to adjust
|
||||||
just means that to start using the new version you need to adjust your
|
your imports. So if your code currently has something like this:</p>
|
||||||
imports. So if your code currently has something like this:</p>
|
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
import wx
|
import wx
|
||||||
import wx.ogl as ogl
|
import wx.ogl as ogl
|
||||||
|
Reference in New Issue
Block a user