]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/CHANGES.html
tweaked build ordering a bit
[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">
cae92223
RD
14<h1><a name="id1">2.5.5.0</a></h1>
15<p>wxMSW: Fixed bug #1022383, 'several ComboBoxes appear selected'</p>
16<p>wx.grid.Grid: Fixed bug #1163384. Moved the code that handles
17activating the cell editors to a EVT_CHAR event handler. This is done
18so the character inserted into the editor will be the &quot;cooked&quot; char
19value (including accented or composed keys) rather than the raw code
20provided by the EVT_KEY_DOWN event.</p>
21<p>Added orient parameter to wx.MDIParentFrame.Tile()</p>
22<p>wxMSW: wxTextCtrl with wx.TE_RICH2 style now uses RichEdit 4.1 if
23available.</p>
24<p>Added GetCount, GetCountRGB, and GetCountColour methods to
25wx.ImageHistogram.</p>
26<p>wxMSW: wx.Window.Refresh changed to explicitly refresh all children as
27well as the parent. Previously it was implicitly done because parents
28did not clip their children by default. Now that they always clip
29children then Refresh needed to be fixed to do a recursive refresh.
30This also fixes the Freeze/Thaw problems that some people had with
312.5.4.1.</p>
32<p>wx.SplitterWindow: Send EVT_SPLITTER_SASH_POS_CHANGED only once after
33end of dragging and not after each CHANGING event (modified patch
34#1076226)</p>
35<p>wx.glcanvas.GLCanvas: applied patch fixing problems with X server
36crash when using nVidia cards (patch 1155132)</p>
37<dl>
38<dt>wx.lib.mixins.listctrl: Patches from Toni Brkic:</dt>
39<dd><ul class="first last simple">
40<li>Bugfix for TextEditMixin when the view can't be scrolled</li>
41<li>Enhancement for ListCtrlAutoWidthMixin, allowing it to manage
42the width of any column.</li>
43</ul>
44</dd>
45</dl>
46<p>wxMac: removal and reusing toolbar tools like the other platforms is
47now possible.</p>
48<p>wxMac: Correct radio tool selection after calling Realize a 2nd time.</p>
49<p>wxMSW: Applied patch #1166587, removes all flicker from wx.StaticBox</p>
50<p>Added wx.lib.foldpanelbar, Andrea Gavana's port of Jorgen Bodde's C++
51wxFoldPanelBar classes to Python.</p>
52<p>wxGTK: Applied patch #1173802, reimplementation of GtkFileChooser
53wxFileDialog by Mart Raudsepp. Note that this new file dialog is only
54used on GTK2 &gt;= 2.4. For earlier GTK2 versions and GTK1 then the
55older generic file dialog is used.</p>
56<p>wxMSW: fixes to static box borders calculations (finalizes patch
57#1166587)</p>
58<p>wx.Image: Use Python's buffer interface API for all image data and
59alpha Set/Get methods and the ImageFromData* constructors. They all
60still copy the buffer except for SetDataBuffer and SetAlphaBuffer, but
61this gives more flexibility on where the data can come from.</p>
62<p>Added MDI support to XRC</p>
63<p>Added wx.animate module and a demo. The wx.animate module provides a
64control that is able to display an animated GIF file.</p>
65<p>wx.lib.plot.py: Applied patch from Werner F. Bruhin that allows either
66vertical and/or horizontal gridlines.</p>
67<p>wxMSW: Extra space given for top border of wx.StaticBoxSizer so the
68upper line is not cliped when there is no label.</p>
69<p>wxMSW: Restored old behaviour of wx.StaticBox.SetBackgroundColour only
70affecting the label.</p>
71<p>wxMSW: Fixed missing EVT_RIGHT_DOWN and EVT_TREE_ITEM_RIGHT_CLICK
72events in a wx.TreeCtrl.</p>
73<p>Added wx.GetTopLevelWindows() function which returns a copy of the
74list of top-level windows that currently exist in the application.</p>
75<p>Updated docview library modules and sample apps from the ActiveGrid
76folks.</p>
77<p>Added the ActiveGrid IDE as a sample application.</p>
78</div>
79<div class="section" id="id2">
80<h1><a name="id2">2.5.4.1</a></h1>
287cb697
RD
81<p>wx.Sizer Add, Insert, and Prepend functions now return a reference to the
82wx.SizerItem that was added to the sizer, and the wx.SizerItem has a
83GetRect accessor to give the position of the item on the parent window.</p>
84<p>Added wx.Sizer.GetItem method which returns the wx.SizerItem for the given
85wx.Window, wx.Sizer or position index.</p>
86<p>wxMSW: wx.RadioButtons in the same group no longer have to be
87consecutive (there may be intervening controls). Without this fix, an
88out-of-sync assert is generated when clicking on a radio button and
89then calling GetValue().</p>
90<dl>
91<dt>Some XRC changes: </dt>
92<dd><ul class="first last simple">
93<li>Added 'icon' property to wxFrame and wxDialog</li>
94<li>No longer ignores menu bitmaps on non-MSW platforms</li>
95<li>Notebook page bitmaps are now supported</li>
96<li>added system colours and fonts support (based on patch #1038207)</li>
97</ul>
98</dd>
99</dl>
100<p>wxMSW: fix for [ 1052989 ] TextCtrl.SetBackgroundColour(wx.NullColour)
101bug.</p>
102<p>Added wx.PasswordEntryDialog analagous to wx.TextEntryDialog, allows
103detecting entering an empty string vs. cancel unlike the
104wx.GetPasswordFromUser dialog function.</p>
105<p>OGL patch from Shane Holloway:</p>
106<blockquote>
107<p>Two simple problems found in the new python ogl code. First is
108the patch for _canvas.py. Essentially:</p>
109<pre class="literal-block">
110dx = abs(dc.LogicalToDeviceX(x - self._firstDragX))
111dy = abs(dc.LogicalToDeviceY(y - self._firstDragY))
112</pre>
113<p>was incorrect because (x,y) and (self._firstDragX,
114self._firstDragY) are both already in Logical coordinates.
115Therefore the difference between the two is also in logical
116coordinates, and the conversion call is an error. This bug
117surfaces when you have OGL on a scrollwin, and you are far from
118the origin of the canvas.</p>
119<p>The second change in _composit.py basically removes the assumption
120that the child is in both self._children and self._divisions.
121Causes many problems when it's not. ;)</p>
122</blockquote>
123<p>Fixed GetSaveData and SetSaveData in wx.lib.multisash to not depend on
124the default way that class objectss are converted to strings.</p>
125<p>Fixed problem in StyledTextCtrl.Set[HV]ScrollBar that could leave the
126internal scrollbar visible.</p>
127<p>Added wx.StandardPaths which provides methods for determining standard
128system paths for each platform.</p>
129<p>wxMSW: The window background is now only erased by default if the
130background colour or background mode has been changed. This better
131allows the default system themed behaviour to show through for
132uncustomized windows. Explicit support added for using the correct
133theme texture for wx.Notebook pages and their children.</p>
134<p>wx.Image: Added support for alpha channels in interpolated and
135non-interpolated image rotation. Added ConvertAlphaToMask helper
136method for turning shades of grey into shades of alpha and a colour.</p>
137<p>wxGTK2: Reimplemented DoDrawRotatedText() by way of a rotation of an
138alpha blended text bitmap. It would be better if Pango could draw
139directly into an wxImage (as FreeType can,) but that is for later...</p>
140<p>Added wrappers and a demo for the wx.MediaCtrl class, which can play
141various forms of audio/video media using native codecs install on the
142system. So far it is only implemented for Windows and OSX.</p>
143<p>wxGTK: Patch applied for Freeze()/Thaw() for wxTextCtrtl.</p>
144<p>Added &quot;gravity&quot; for splitter window (patch 1046105). Gravity is a
145floating-point factor between 0.0 and 1.0 which controls position of
146sash while resizing the wx.SplitterWindow. The gravity specifies
147how much the left/top window will grow while resizing.</p>
148<p>wxMSW: wx.Slider's C++ implementation rewritten to be more
149maintainable and hopefully less buggy. The position of the labels has
150also been changed in order to better comply with Microsoft's examples
151of how to use the control.</p>
152<p>wxMSW: Fix wx.TreeCtrl to end label editing if the control loses
153focus (a slightly modified patch 1084592.)</p>
154<p>Added wx.EXEC_NODISABLE flag for wx.Execute, which will prevent all
155the app's windows being disabled while a synchronous child process is
156running.</p>
157<p>wxMSW: Much work to correct painting (or leaving transparent) of
158control backgrounds, properly using background themes on XP, etc.</p>
159<p>Fixed a circular reference problem with wx.Timer. It will now
160completely cleanup after itself when the last reference to the timer
161is removed. If you were previously using timer.Destroy() to cleanup
162your timers it will no longer work. Instead you should hold a
163reference to the timer and then del the reference when you are
164finished with the timer.</p>
165<p>Updated to 1.3.24 of SWIG. All of my big patches have been applied to
166the main SWIG source tree, but unfortunatly there were also some bugs
167added that affected the wxPython build and a few details in my
168original patch were changed/removed, so we are still not free of
169patches. A new patch for SWIG is located in the wxPython/SWIG
170directory of the wxPython source tree. SWIG 1.3.24 plus this patch
171should be used by anyone who is making custom modifications to
172wxPython's .i files, or building their own extension modules or
173etc. that need to interact with the wxPython swigged types. For the
174morbidly curious, here are a few more details:</p>
175<blockquote>
176<ul class="simple">
177<li>Since it is now possible easily and simply share the SWIG type
178tables across modules I reverted to always using the stock SWIG
179runtime instead of my slightly hacked up version of it exported
180via the wxPython C API.</li>
181<li>The %name directive is now deprecated so I replaced most uses of
182it with a custom %Rename macro that uses %rename internally.
183These will evetually need to be replaced with a DocDecl macro
184when docstrings are added for those items.</li>
185<li>The &quot;this&quot; attribute of all SWIGged classes is no longer a
186string containing a &quot;swigified pointer&quot;, but rather a custom
187built-in type that holds the real C pointer to the object and
188the type info. It can be converted to a string like the old
189value using str() or to the long integer value of the pointer
190using long().</li>
191</ul>
192</blockquote>
193<p>Added SetDefaultPyEncoding and GetDefaultPyEncoding functions which
194will set/get the encoding used by wxPython to convert string or
195unicode objects to/from wxString objects. Previously the default
196Python encoding was always used, but unless the user had tweaked their
197sitecustomize.py file it is always &quot;ascii&quot;, which would result in
198errors if the strings contained character codes &gt;= 128.
199SetDefaultPyEncoding will now allow you to control which encoding will
200be used to do those conversions. The default encoding is set to the
201value of <cite>locale.getdefaultlocale()[1]</cite> when wxPython is first
202imported. Please see <a class="reference" href="http://www.alanwood.net/demos/charsetdiffs.html">http://www.alanwood.net/demos/charsetdiffs.html</a>
203for information on the differences between the common latin/roman
204encodings.</p>
205<p>Added wxStdDialogButtonSizer, which is a a special sizer that knows
206how to order and position standard buttons in order to conform to the
207current platform's standards. You simply need to add each <cite>wx.Button</cite>
208to the sizer, and be sure to create the buttons using the standard
209ID's. Then call <cite>Realize</cite> and the sizer will take care of the rest.</p>
210<p>wxMSW Toolbar: pass correct tool id (and not always -1) to the
211EVT_TOOL_RCLICKED handler</p>
212<p>wxGTK: Applied patch for combo box SELECTED events (no longer get
213lots of surplus events)</p>
214<p>wxGTK: Applied patch for proper menu highlight colour detection in
215wx.SystemSettings.</p>
216<p>wxGTK: Commited scrollbar patch #1093339 which sends lineup, linedown
217events based on intercepting the mouse down events.</p>
218<p>wxGTK: Applied patch #1102789 which solved conflicts between wxWidgets
219and GTK+'s context menu code.</p>
220<p>wxGTK: Applied patch #1100327 for correct feedback from DND actions
221(not all actions are allowed).</p>
222<p>Fixed memory leak in wxGrid::UpdateAttr[Rows][Or][Cols] (patch 1104355)</p>
223<p>For efficiency reasons, text controls no longer set the string for
224each text updated event, but rather query for the string value only
225when GetString is called from an event handler.</p>
226<p>Added wx.SL_INVERSE style which will cause wx.Slider to invert the min
227and max ends of the slider.</p>
228<p>Several patches applied, such as #1111174, #1110252 and others, that
229make the generic wx.TreeCtrl (used on wxGTK and wxMac) be more
230conistent with the wxMSW native wx.TreeCtrl.</p>
231<dl>
232<dt>XRCed:</dt>
233<dd><ul class="first last simple">
234<li>Edit-&gt;Locate command (Ctrl-L) for quick selection of items.
235Works with event-handling controls (buttons, text fields) but
236not with labels/sizers.</li>
237<li>Some improvements: relative paths for files supplied as command-
238line argument work correctly, notebook panels are highlighted
239better.</li>
240</ul>
241</dd>
242</dl>
243<p>wxMac: Fixed a long-standing issue where wxSlider controls with a
244hardcoded size would misplace their labels behind the slider control.</p>
245<p>wx.HtmlListBox fixed so calling RefreshLine(s) will cause the data for
246that line to be refetched from the overridden methods in the derived
247class.</p>
248<p>The default DoGetBestSize now includes the difference (if any) between
249the client size and total size of the window, (such as the size of
250borders.) Code that sets the client size using the best size, or that
251added extra space to sizers to compensate for this bug may need to be
252changed.</p>
253<p>Can suppress themed notebook pages with the wxNB_NOPAGETHEME style or
254setting system option msw.notebook.themed-background to 0.</p>
255<p>wxSyledTextCtrl updated to use Scintilla 1.62.</p>
256<p>Can now set the msw.window.no-clip-children system option to 1 to
257eliminate weird refresh behaviour (delays between a window being
258erased and repainted, giving a ghostly gradual-redraw effect). May be
259a temporary 'fix' until properly fixed before 2.6.</p>
260<p>wxMac: Toolbar is now more native looking with borderless toolbar
261buttons.</p>
262<p>wxMac: Switched wx.Bitmap to use newer Quartz object types and APIs
263internally. This results in faster display and better alpha support.</p>
264<p>Added wx.DatePickerCtrl.</p>
265<p>wx.html.HtmlWindow now supports background images.</p>
266<p>Added wx.lib.gestures module from Daniel Pozmanter which supports
267using Mouse Gestures in an application.</p>
268<p>wxGTK2: ENTER and LEAVE mouse events are now sent for multi-line text
269controls.</p>
270<p>wxMSW: &quot;Alt&quot; key (VK_MENU) now results in WXK_ALT keyboard event, not
271WXK_MENU</p>
272<p>Added modules from Peter Yared and Morgan Hua that implement the wx
273Doc/View framework in pure Python code. See wx.lib.docview for the
274base implementation and wx.lib.pydocview for Python-specific
275extensions. There are also a couple sample applications located in
276samples/docview.</p>
277<p>Added GetBitmap, GetIcon to wx.ImageList.</p>
278<p>wxGTK wx.Button.SetLabel no longer invalidates/resets the font.</p>
279<p>wx.Sizer.AddWindow, AddSizer, AddSpacer and etc. have now been
280undeprecated at the request of Riaan Booysen, the Boa Constructor team
281lead. Boa needs them to help keep track of what kind of item is being
282managed by the sizer. They are now just simple compatibility aliases
283for Add, and etc.</p>
284<p>The old C++ version of the OGL lib is no longer built by default. Use
285the Python version in the wx.lib.ogl package instead.</p>
286<p>The wx.iewin module is no longer built by default. You can use the
287wx.lib.iewin version instead.</p>
288<p>Fixed wx.BufferedPaintDC for scrolled windows to work whether the
289buffer is covering only the client area or the full virtual area of
290the scrolled window. By default it will assume that only the client
291area is covered. This is different than the old behavior so to
292indicate that the entire virtual area is covered simply add a
293style=wx.BUFFER_VIRTUAL_AREA parameter.</p>
294<p>wx.gizmos.TreeListCtrl: Add support for the EVT_TREE_ITEM_GETTOOLTIP
295event.</p>
296<p>Added Resize, SetRGBRect, Size, and GetOrFindMaskColour methods to
297wx.Image.</p>
298<p>Added wx.Rect.IsEmpty</p>
299<dl>
300<dt>wxGTK:</dt>
301<dd><ul class="first last simple">
302<li>Corrected wx.ListBox selection handling</li>
303<li>Corrected default button size handling for different themes</li>
304<li>Corrected splitter sash size and look for different themes</li>
305<li>Fixed keyboard input for dead-keys</li>
306</ul>
307</dd>
308</dl>
309</div>
cae92223
RD
310<div class="section" id="id3">
311<h1><a name="id3">2.5.3.1</a></h1>
60b517c1
RD
312<p>wxMac focus and border refreshes corrected.</p>
313<p>Updated internal PNG library.</p>
314<p>wxMac fix for metal appearance on wx.ToolBar.</p>
315<p>wx.grid.Grid fix allowing DoGetBestSize to be called before CreateGrid
316(which means that a min size doesn't need to be specified.)</p>
317<p>wxMac fix for not sending a native click to a control if it is not
318enabled (does an enable itself)</p>
319<p>Added wx.lib.ogl.DrawnShape, and fixed various little bugs in the new
320OGL.</p>
321<p>Added support to XRC and XRCed for the 3-state checkbox flags and also
322for wx.ToggleButton. Updated the generic window styles supported by
323XRCed.</p>
324<p>It is now possible to create &quot;stock&quot; buttons. Basically this means
325that you only have to provide one of the stock IDs (and either an
326empty label or a label that matches the stock label) when creating the
327button and wxWidgets will choose the stock label to go with it
328automatically. Additionally on the platforms that have a native
329concept of a stock button (currently only GTK2) then the native stock
330button will be used. For example, the following will result in a
287cb697
RD
331button with &quot;Cancel&quot; as the label and if run on wxGTK2 then there will
332also be an image of a red X:</p>
60b517c1
RD
333<pre class="literal-block">
334b = wx.Button(parent, wx.ID_CANCEL)
335</pre>
336<p>Added wx.lib.ticker.Ticker class from Chris Mellon.</p>
337<p>Fix some incorrect clipping regions in wxSTC on wxGTK.</p>
338<p>Added wrapper for wx.grid.Grid.GetOrCreateCellAttr.</p>
339<p>Removed my copy of distutils from the wxPython source tree. Now that
340I am no longer doing builds on Python 2.1 the newest distutils is no
341longer needed. (There is still one small bug in Python 2.2 distutils
342on win32, but it is easily worked around.) This sovles the problem of
343incorrect builds on some systems where the system installed distutils
344has been patched to behave slightly differently, for example SuSE on
345x86_64 or Chandler's build.</p>
346<p>Updated to SWIG 1.3.22 (plus my patch.) See wxPython/SWIG/README.txt
347in the source tree if you need to use SWIG when building your own copy
348of wxPython, or other extension modules that need to integrate with
349the wxPython modules.</p>
350<p>Added wx.Frame.RequestUserAttention which, if the platform suports it,
351will do something (such as flash the task bar item) to suggest to the
352user that they should look at that window.</p>
353<p>&quot;Fixed&quot; wx.grid.Grid.SetDefaultEditor and SetDefaultRenderer by making
354them register the editor or renderer for the &quot;string&quot; data type.</p>
355<p>Added depth param to wx.Image.ConvertToBitmap.</p>
356<p>Extended the wx.calendar.CalendarCtrl class with methods that get/set
357a Python datetime or date object. (These will only work with Python
3582.3+) The methods are PySetDate, PyGetDate, PySetLowerDateLimit,
359PySetUpperDateLimit, PySetDateRange, PyGetLowerDateLimit, and
360PyGetUpperDateLimit. Also, CalendarEvent was extended with PySetDate
361and PyGetDate methods.</p>
362<p>wxMSW: SetBackgroundColour on a wx.Choice or a wx.ComboBox will now
363also set the colour of the dropdown.</p>
364<p>wxMac: MessageDialog now supports wx.NO_DEFAULT style</p>
365<p>wxMSW: added AssociateHandle and DissociateHandle to wx.Window</p>
366<p>wxMac: fix for toolbar tooltips</p>
367<p>wx.Sizer.Show (and Hide) now take an optional parameter specifying if
368the item to be shown should be searched for recursivly in subsizers,
369and return a boolean value indicating if the item was found.</p>
370<p>wxMSW: fixed MaximizeEvent generation in wx.Frame</p>
371<p>wxMSW: fixed sending duplicate EVT_COMBOBOX events</p>
372<p>Smoother time estimation updates in wx.ProgressDialog (patch 992813)</p>
373<p>Made wx.Listbook events more consistent with wx.Notebook ones (patch
3741001271)</p>
375<p>Fixed rounding errors in variable status bar panes widths computation
376(patch 1030021)</p>
377<p>Added possibility to specify printer bin (patch 910272)</p>
378<p>wxMSW: fixed wx.ListCtrl's SetWindowStyleFlag() to not remove
379WS_VISIBLE; also refresh the control automatically (closes bug
3801019440)</p>
381<p>Added wx.Choicebook, yet another notebook-like control.</p>
382<p>wxMSW: Make radiobutton tab behaviour the same on MSW as in standard
383MSW app, i.e. tab into the activated, not necessarily the first radio
384button.</p>
385<p>Added limited support for wxEventLoop (you can't derive from a
386wx.PyEventLoop version yet...) Updated and moved the sample showing
387how to replace the MainLoop to samples/mainloop/mainloop.py.</p>
388<p>The C++ xrc lib has been moved out of contrib and into the core, so it
389is always built by default. wxPython's build has also changed
390accordingly and will build the xrc module as part of the core set of
391modules built by default. If you were axplicitly using BUILD_XRC then
392it will no longer be recognized as a build option, otherwise you
393should notice no difference.</p>
394<p>wxMac: Fixed radio toolbar buttons to correctly untoggle the others
395when a new one is selected.</p>
396<p>wxMac: Fixed GetLineLength and GetLineText for MLTE text controls</p>
397<p>wxMac: wx.TaskBarIcon is implemented by allowing you to change the
398app's icon on the Dock and also specifying a menu that should be
399merged with the normal dock popup menu. See the MigrationGuide for
400more details and a warning.</p>
401<p>Added wx.TopLevelWindow.IsActive() which tells you if the frame or
402dialog is or containts the active window with the keyboard focus.</p>
403<p>Added ability to create a font based on pixel size rather than point
404size via the FontFromPixelSize constructor.</p>
405<p>Updated the Scintilla used by StyledTextCtrl to version 1.61</p>
406<p>Improved image HitTest for TreeListCtrl.</p>
407<p>Added wx.App.IsMainLoopRunning.</p>
408<p>wxGTK: Make wxComboBox spit out a bit fewer surplus events when
409holding down the mouse button.</p>
410<p>wxGTK: Enable key based navigation through notebook tabs as in the
411native control with Left and right keys. Support for vetoing.</p>
412<p>FloatCanvas updates from Chris Barker</p>
413<dl>
414<dt>PyPlot updates from Gordon Williams:</dt>
415<dd><ul class="first last simple">
416<li>Added bar graph demo</li>
417<li>Modified line end shape from round to square.</li>
418<li>Removed FloatDCWrapper for conversion to ints and ints in
419arguments</li>
420<li>Imported modules given leading underscore to name.</li>
421<li>Added Cursor Line Tracking and User Point Labels.</li>
422<li>Demo for Cursor Line Tracking and Point Labels.</li>
423<li>Size of plot preview frame adjusted to show page better.</li>
424<li>Added helper functions PositionUserToScreen and
425PositionScreenToUser in PlotCanvas.</li>
426<li>Added functions GetClosestPoints (all curves) and GetClosestPoint
427(only closest curve) can be in either user coords or screen
428coords.</li>
429</ul>
430</dd>
431<dt>MaskedEdit updates from Will Sadkin:</dt>
432<dd><ul class="first last simple">
433<li>Added '*' mask char that means &quot;all ansii chars&quot; (ords 32-255)</li>
434<li>Added proper unicode support to masked controls and wx.tools.dbg</li>
435<li>Fixed two reported missing import bugs introduced by package
436creation</li>
437<li>Converted masked package doc strings to reST format for better
438epydoc support</li>
439<li>lots of doc string improvements and function hiding to better
440reflect package's public contents.</li>
441</ul>
442</dd>
443</dl>
444<p>Restructured the installer packages slightly to help facilitate having
445multiple versions of wxPython installed at the same time. See the
446Migrarion Guide for more information.</p>
447<dl>
448<dt>Applied patch from Pim Van Heuven that modifies 4 files:</dt>
449<dd><ul class="first last simple">
450<li>wxPython/demo/ListCtrl_edit.py (new demo)</li>
451<li>wxPython/demo/Main.py (include new demo in demo app)</li>
452<li>wxPython/wx/lib/mixins/listctrl.py (several improvements to
453TextEditMixin)</li>
454<li>wxPython/wx/lib/wxpTag.py (some small fixes)</li>
455</ul>
456</dd>
457</dl>
458<p>Added (thanks to Kevin Ollivier!) wrappers for wx.WebKitCtrl for the
459OSX build. Other platforms will raise an exception if you try to use
460it.</p>
461<p>wxPython on OSX can now be built in Unicode mode, can support multiple
462version installs, and comes with an uninstaller script.</p>
463</div>
cae92223
RD
464<div class="section" id="id4">
465<h1><a name="id4">2.5.2.8</a></h1>
df1a2934
RD
466<p>Predominantly a bug-fix release.</p>
467<blockquote>
468<ul class="simple">
469<li>Fixed fatal error due to improper wrapping of wx.FSFile.</li>
470<li>Fixed return type of EditableListBox.GetListCtrl</li>
471<li>Give generic tree and list controls a DoGetBestSize so they play
472nicer with sizers when there is no minimal size.</li>
473<li>Some tweaks in the demo and samples to correct layout, some
474flicker problems, and namespace use.</li>
475<li>Add wx.Image.ConvertAlphaToMask</li>
476<li>Minor corrections in wx.lib.dialogs</li>
477<li>wx.FileHistory constructor now accepts the documented 2nd
478parameter.</li>
479<li>Corrections for exceptions in the new ogl</li>
480<li>Fixed XRCed to not use reparenting of windows to implement caching
481of property panels, since Reparent on wxMac is not implemented.</li>
482<li>Add support for wxTAB_TRAVERSAL to the XRC handler for
483wxScrolledWindow.</li>
484<li>Add support for all wxListBox styles to the XRC handler for
485wxCheckListBox.</li>
486<li>Fix for wx.Listbook.DeleteAllPages to really delete everything.</li>
487<li>wxGTK2 now supports alpha blended bitmap drawing</li>
488<li>Made wx.grid.Grid play nicer with sizers.</li>
489<li>etc.</li>
490</ul>
491</blockquote>
492</div>
cae92223
RD
493<div class="section" id="id5">
494<h1><a name="id5">2.5.2.7</a></h1>
40efbdda
RD
495<p>wx.ADJUST_MINSIZE is now the default behaviour for window items in
496sizers. This means that the item's GetMinSize and/or GetBestSize will
497be called when calculating layout and the return value from that will
498be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE
499flag was added that will cause the sizer to use the old behaviour in
500that it will <em>not</em> call the window's methods to determine the new best
501size, instead the minsize that the window had when added to the sizer
da2c7672
RD
502(or the size the window was created with) will always be used. Please
503see the Sizers section in the Migration Guide for more details.</p>
40efbdda
RD
504<p>Added new MaskedEditControl code from Will Sadkin. The modules are
505now locaed in their own sub-package, wx.lib.masked. Demos updated.</p>
506<p>The changes that implemented the incompatible wx.DC methods in 2.5.1.5
507have been reverted. The wx.DC methods are now compatible with the 2.4
508implemetation. In addition a set of renamed methods have been added
509that take wx.Point and/or wx.Size objects instead of individual
510parameters.</p>
511<p>Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
512all columns of a wx.ListCtrl in report mode to be edited.</p>
513<p>Deprecated the wx.iewin module.</p>
514<p>Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well
515as their Insert* and Prepend* counterparts.</p>
516<p>Added a generic StaticBitmap class in wx.lib.statbmp for the same
517reasons that stattext was created, so it could be mouse sensitive on
518all platforms like normal windows. Also updated stattext.py and
519buttons.py to handle attribute (font &amp; colour) defaults and
520inheritance the new way. If you have custom controls of your own you
521should review stattxt.py or one of the others to see how it is to be
522done.</p>
523<p>wx.InitAllImageHandlers is now an empty function that does nothing but
524exist for backwards compatibility. The C++ version is now called
525automatically when wxPython is initialized. Since all the handlers
526are included in the wxWidgets shared library anyway, this imposes only
527a very small amount of overhead and removes several unneccessary
528problems.</p>
529<p>Replaced wx/lib/pubsub.py with a version that uses weak references to
530track the subscribers, plus other fixes/additions. Thanks go to
531Oliver Schoenborn and Robb Shecter.</p>
532<p>wxGTK now uses gtk_init_check so wxPython can raise an exception if
533there is no DISPLAY available or other initializaion problem.</p>
534<p>wx.GetKeyState now has an implementation for wxGTK and is able to
535detect the up/down or toggle state of modifier and toggle keys.</p>
536<p>The LC_NUMERIC locale is now reset back to &quot;C&quot; (compatibility) when
537running on wxGTK to work around the fact that GTK requires the locale
538to be set to the system settings but Python depends on LC_NUMERIC
539remaining compatible with &quot;C&quot;.</p>
540<p>Switched gizmos.TreeListCtrl to the newer version of the code from the
541wxCode project.</p>
542<p>OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
543leaked out there...) The wx.ogl module has been deprecated in favor
544of the new Python port of the OGL library located at wx.lib.ogl
545