]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/CHANGES.html
added missing LFs to the header
[wxWidgets.git] / wxPython / docs / CHANGES.html
CommitLineData
8eda5e35
RD
1<?xml version="1.0" encoding="iso-8859-1" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6<meta name="generator" content="Docutils 0.3.1: http://docutils.sourceforge.net/" />
73adcb01 7<title>Recent Changes for wxPython</title>
8eda5e35
RD
8<link rel="stylesheet" href="default.css" type="text/css" />
9</head>
10<body>
73adcb01
RD
11<div class="document" id="recent-changes-for-wxpython">
12<h1 class="title">Recent Changes for wxPython</h1>
fc33e5e1 13<div class="section" id="id1">
9004ba6a 14<h1><a name="id1">2.5.3.1</a></h1>
60b517c1
RD
15<p>wxMac focus and border refreshes corrected.</p>
16<p>Updated internal PNG library.</p>
17<p>wxMac fix for metal appearance on wx.ToolBar.</p>
18<p>wx.grid.Grid fix allowing DoGetBestSize to be called before CreateGrid
19(which means that a min size doesn't need to be specified.)</p>
20<p>wxMac fix for not sending a native click to a control if it is not
21enabled (does an enable itself)</p>
22<p>Added wx.lib.ogl.DrawnShape, and fixed various little bugs in the new
23OGL.</p>
24<p>Added support to XRC and XRCed for the 3-state checkbox flags and also
25for wx.ToggleButton. Updated the generic window styles supported by
26XRCed.</p>
27<p>It is now possible to create &quot;stock&quot; buttons. Basically this means
28that you only have to provide one of the stock IDs (and either an
29empty label or a label that matches the stock label) when creating the
30button and wxWidgets will choose the stock label to go with it
31automatically. Additionally on the platforms that have a native
32concept of a stock button (currently only GTK2) then the native stock
33button will be used. For example, the following will result in a
34button with &quot;Cancel&quot; as the label and an accelerator on the &quot;C&quot;, and
35if run on wxGTK2 then there will also be an image of a red X:</p>
36<pre class="literal-block">
37b = wx.Button(parent, wx.ID_CANCEL)
38</pre>
39<p>Added wx.lib.ticker.Ticker class from Chris Mellon.</p>
40<p>Fix some incorrect clipping regions in wxSTC on wxGTK.</p>
41<p>Added wrapper for wx.grid.Grid.GetOrCreateCellAttr.</p>
42<p>Removed my copy of distutils from the wxPython source tree. Now that
43I am no longer doing builds on Python 2.1 the newest distutils is no
44longer needed. (There is still one small bug in Python 2.2 distutils
45on win32, but it is easily worked around.) This sovles the problem of
46incorrect builds on some systems where the system installed distutils
47has been patched to behave slightly differently, for example SuSE on
48x86_64 or Chandler's build.</p>
49<p>Updated to SWIG 1.3.22 (plus my patch.) See wxPython/SWIG/README.txt
50in the source tree if you need to use SWIG when building your own copy
51of wxPython, or other extension modules that need to integrate with
52the wxPython modules.</p>
53<p>Added wx.Frame.RequestUserAttention which, if the platform suports it,
54will do something (such as flash the task bar item) to suggest to the
55user that they should look at that window.</p>
56<p>&quot;Fixed&quot; wx.grid.Grid.SetDefaultEditor and SetDefaultRenderer by making
57them register the editor or renderer for the &quot;string&quot; data type.</p>
58<p>Added depth param to wx.Image.ConvertToBitmap.</p>
59<p>Extended the wx.calendar.CalendarCtrl class with methods that get/set
60a Python datetime or date object. (These will only work with Python
612.3+) The methods are PySetDate, PyGetDate, PySetLowerDateLimit,
62PySetUpperDateLimit, PySetDateRange, PyGetLowerDateLimit, and
63PyGetUpperDateLimit. Also, CalendarEvent was extended with PySetDate
64and PyGetDate methods.</p>
65<p>wxMSW: SetBackgroundColour on a wx.Choice or a wx.ComboBox will now
66also set the colour of the dropdown.</p>
67<p>wxMac: MessageDialog now supports wx.NO_DEFAULT style</p>
68<p>wxMSW: added AssociateHandle and DissociateHandle to wx.Window</p>
69<p>wxMac: fix for toolbar tooltips</p>
70<p>wx.Sizer.Show (and Hide) now take an optional parameter specifying if
71the item to be shown should be searched for recursivly in subsizers,
72and return a boolean value indicating if the item was found.</p>
73<p>wxMSW: fixed MaximizeEvent generation in wx.Frame</p>
74<p>wxMSW: fixed sending duplicate EVT_COMBOBOX events</p>
75<p>Smoother time estimation updates in wx.ProgressDialog (patch 992813)</p>
76<p>Made wx.Listbook events more consistent with wx.Notebook ones (patch
771001271)</p>
78<p>Fixed rounding errors in variable status bar panes widths computation
79(patch 1030021)</p>
80<p>Added possibility to specify printer bin (patch 910272)</p>
81<p>wxMSW: fixed wx.ListCtrl's SetWindowStyleFlag() to not remove
82WS_VISIBLE; also refresh the control automatically (closes bug
831019440)</p>
84<p>Added wx.Choicebook, yet another notebook-like control.</p>
85<p>wxMSW: Make radiobutton tab behaviour the same on MSW as in standard
86MSW app, i.e. tab into the activated, not necessarily the first radio
87button.</p>
88<p>Added limited support for wxEventLoop (you can't derive from a
89wx.PyEventLoop version yet...) Updated and moved the sample showing
90how to replace the MainLoop to samples/mainloop/mainloop.py.</p>
91<p>The C++ xrc lib has been moved out of contrib and into the core, so it
92is always built by default. wxPython's build has also changed
93accordingly and will build the xrc module as part of the core set of
94modules built by default. If you were axplicitly using BUILD_XRC then
95it will no longer be recognized as a build option, otherwise you
96should notice no difference.</p>
97<p>wxMac: Fixed radio toolbar buttons to correctly untoggle the others
98when a new one is selected.</p>
99<p>wxMac: Fixed GetLineLength and GetLineText for MLTE text controls</p>
100<p>wxMac: wx.TaskBarIcon is implemented by allowing you to change the
101app's icon on the Dock and also specifying a menu that should be
102merged with the normal dock popup menu. See the MigrationGuide for
103more details and a warning.</p>
104<p>Added wx.TopLevelWindow.IsActive() which tells you if the frame or
105dialog is or containts the active window with the keyboard focus.</p>
106<p>Added ability to create a font based on pixel size rather than point
107size via the FontFromPixelSize constructor.</p>
108<p>Updated the Scintilla used by StyledTextCtrl to version 1.61</p>
109<p>Improved image HitTest for TreeListCtrl.</p>
110<p>Added wx.App.IsMainLoopRunning.</p>
111<p>wxGTK: Make wxComboBox spit out a bit fewer surplus events when
112holding down the mouse button.</p>
113<p>wxGTK: Enable key based navigation through notebook tabs as in the
114native control with Left and right keys. Support for vetoing.</p>
115<p>FloatCanvas updates from Chris Barker</p>
116<dl>
117<dt>PyPlot updates from Gordon Williams:</dt>
118<dd><ul class="first last simple">
119<li>Added bar graph demo</li>
120<li>Modified line end shape from round to square.</li>
121<li>Removed FloatDCWrapper for conversion to ints and ints in
122arguments</li>
123<li>Imported modules given leading underscore to name.</li>
124<li>Added Cursor Line Tracking and User Point Labels.</li>
125<li>Demo for Cursor Line Tracking and Point Labels.</li>
126<li>Size of plot preview frame adjusted to show page better.</li>
127<li>Added helper functions PositionUserToScreen and
128PositionScreenToUser in PlotCanvas.</li>
129<li>Added functions GetClosestPoints (all curves) and GetClosestPoint
130(only closest curve) can be in either user coords or screen
131coords.</li>
132</ul>
133</dd>
134<dt>MaskedEdit updates from Will Sadkin:</dt>
135<dd><ul class="first last simple">
136<li>Added '*' mask char that means &quot;all ansii chars&quot; (ords 32-255)</li>
137<li>Added proper unicode support to masked controls and wx.tools.dbg</li>
138<li>Fixed two reported missing import bugs introduced by package
139creation</li>
140<li>Converted masked package doc strings to reST format for better
141epydoc support</li>
142<li>lots of doc string improvements and function hiding to better
143reflect package's public contents.</li>
144</ul>
145</dd>
146</dl>
147<p>Restructured the installer packages slightly to help facilitate having
148multiple versions of wxPython installed at the same time. See the
149Migrarion Guide for more information.</p>
150<dl>
151<dt>Applied patch from Pim Van Heuven that modifies 4 files:</dt>
152<dd><ul class="first last simple">
153<li>wxPython/demo/ListCtrl_edit.py (new demo)</li>
154<li>wxPython/demo/Main.py (include new demo in demo app)</li>
155<li>wxPython/wx/lib/mixins/listctrl.py (several improvements to
156TextEditMixin)</li>
157<li>wxPython/wx/lib/wxpTag.py (some small fixes)</li>
158</ul>
159</dd>
160</dl>
161<p>Added (thanks to Kevin Ollivier!) wrappers for wx.WebKitCtrl for the
162OSX build. Other platforms will raise an exception if you try to use
163it.</p>
164<p>wxPython on OSX can now be built in Unicode mode, can support multiple
165version installs, and comes with an uninstaller script.</p>
166</div>
167<div class="section" id="id2">
168<h1><a name="id2">2.5.2.8</a></h1>
df1a2934
RD
169<p>Predominantly a bug-fix release.</p>
170<blockquote>
171<ul class="simple">
172<li>Fixed fatal error due to improper wrapping of wx.FSFile.</li>
173<li>Fixed return type of EditableListBox.GetListCtrl</li>
174<li>Give generic tree and list controls a DoGetBestSize so they play
175nicer with sizers when there is no minimal size.</li>
176<li>Some tweaks in the demo and samples to correct layout, some
177flicker problems, and namespace use.</li>
178<li>Add wx.Image.ConvertAlphaToMask</li>
179<li>Minor corrections in wx.lib.dialogs</li>
180<li>wx.FileHistory constructor now accepts the documented 2nd
181parameter.</li>
182<li>Corrections for exceptions in the new ogl</li>
183<li>Fixed XRCed to not use reparenting of windows to implement caching
184of property panels, since Reparent on wxMac is not implemented.</li>
185<li>Add support for wxTAB_TRAVERSAL to the XRC handler for
186wxScrolledWindow.</li>
187<li>Add support for all wxListBox styles to the XRC handler for
188wxCheckListBox.</li>
189<li>Fix for wx.Listbook.DeleteAllPages to really delete everything.</li>
190<li>wxGTK2 now supports alpha blended bitmap drawing</li>
191<li>Made wx.grid.Grid play nicer with sizers.</li>
192<li>etc.</li>
193</ul>
194</blockquote>
195</div>
60b517c1
RD
196<div class="section" id="id3">
197<h1><a name="id3">2.5.2.7</a></h1>
40efbdda
RD
198<p>wx.ADJUST_MINSIZE is now the default behaviour for window items in
199sizers. This means that the item's GetMinSize and/or GetBestSize will
200be called when calculating layout and the return value from that will
201be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE
202flag was added that will cause the sizer to use the old behaviour in
203that it will <em>not</em> call the window's methods to determine the new best
204size, instead the minsize that the window had when added to the sizer
da2c7672
RD
205(or the size the window was created with) will always be used. Please
206see the Sizers section in the Migration Guide for more details.</p>
40efbdda
RD
207<p>Added new MaskedEditControl code from Will Sadkin. The modules are
208now locaed in their own sub-package, wx.lib.masked. Demos updated.</p>
209<p>The changes that implemented the incompatible wx.DC methods in 2.5.1.5
210have been reverted. The wx.DC methods are now compatible with the 2.4
211implemetation. In addition a set of renamed methods have been added
212that take wx.Point and/or wx.Size objects instead of individual
213parameters.</p>
214<p>Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
215all columns of a wx.ListCtrl in report mode to be edited.</p>
216<p>Deprecated the wx.iewin module.</p>
217<p>Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well
218as their Insert* and Prepend* counterparts.</p>
219<p>Added a generic StaticBitmap class in wx.lib.statbmp for the same
220reasons that stattext was created, so it could be mouse sensitive on
221all platforms like normal windows. Also updated stattext.py and
222buttons.py to handle attribute (font &amp; colour) defaults and
223inheritance the new way. If you have custom controls of your own you
224should review stattxt.py or one of the others to see how it is to be
225done.</p>
226<p>wx.InitAllImageHandlers is now an empty function that does nothing but
227exist for backwards compatibility. The C++ version is now called
228automatically when wxPython is initialized. Since all the handlers
229are included in the wxWidgets shared library anyway, this imposes only
230a very small amount of overhead and removes several unneccessary
231problems.</p>
232<p>Replaced wx/lib/pubsub.py with a version that uses weak references to
233track the subscribers, plus other fixes/additions. Thanks go to
234Oliver Schoenborn and Robb Shecter.</p>
235<p>wxGTK now uses gtk_init_check so wxPython can raise an exception if
236there is no DISPLAY available or other initializaion problem.</p>
237<p>wx.GetKeyState now has an implementation for wxGTK and is able to
238detect the up/down or toggle state of modifier and toggle keys.</p>
239<p>The LC_NUMERIC locale is now reset back to &quot;C&quot; (compatibility) when
240running on wxGTK to work around the fact that GTK requires the locale
241to be set to the system settings but Python depends on LC_NUMERIC
242remaining compatible with &quot;C&quot;.</p>
243<p>Switched gizmos.TreeListCtrl to the newer version of the code from the
244wxCode project.</p>
245<p>OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
246leaked out there...) The wx.ogl module has been deprecated in favor
247of the new Python port of the OGL library located at wx.lib.ogl
248