]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/CHANGES.html
use the MSVC 7.1 DLLs for python versions >= 2.4, not ==
[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" />
c66cd08a 6<meta name="generator" content="Docutils 0.3.7: 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">
095315e2 14<h1><a name="id1">2.6.2.1</a></h1>
17991ec0
RD
15<ul class="simple">
16<li>10-Jan-2006</li>
17</ul>
095315e2
RD
18<p>wxMSW: Fix for bug #1211907, popup menu indenting inconsistent with
19bitmaps.</p>
20<p>wxMac: Don't send an event for wx.RadioButton deselections, just the
21selections. This was done to make it consistent with the other
22platforms.</p>
23<p>wxMSW: Always set flat toolbar style, even under XP with themes: this
24is necessary or separators aren't shown at all.</p>
25<p>Fixes for bug #1217872, pydocview.DocService not correctly initialized.</p>
26<p>Fix for bug #1217874, Error in parameter name in DocManager.CreateView.</p>
27<p>Added wrappers for the wx.RendererNative class.</p>
28<p>Added the wx.lib.splitter module, which contains the
29MultiSplitterWindow class. This class is much like the standard
30wx.SplitterWindow class, except it allows more than one split, so it
31can manage more than two child windows.</p>
32<p>Docview and IDE patch from Morgan Hua with fix for bug #1217890
33&quot;Closing view crashes Python&quot; plus some new features:</p>
34<pre class="literal-block">
35New feature added to the IDE is 'Extensions'. Under
36Tools|Options|Extensions, you can add calls to external programs.
37For example you can add a &quot;Notepad&quot; extension (under windows) that
38will exec Notepad on the currently open file. A new &quot;Notepad&quot;
39menu item will appear under the Tools menu.
40</pre>
41<p>Some fixes to XRCed to make encoding errors a bit more user friendly.</p>
42<p>XRCed changes from Roman Rolinsky:</p>
43<blockquote>
44<ul class="simple">
45<li>Added new controls (Choicebook, Listbook, StatusBar,
46DatePicker), and completed style flags. Test window is opened
47for an available parent control if no specific view
48defined. Better handling of exceptions (highlighting does not
49'stick' anymore).</li>
50<li>Use system clipboard for Copy/Paste.</li>
51<li>Improved some dialogs (window styles, growable cols). Changed
52the range for wxSpinCtrl min/max to all integers (default 0/100
53is not always good).</li>
54</ul>
55</blockquote>
56<p>Updates for wx.lib.foldpanelbar and wx.lib.hyperlink from Andrea
57Gavana.</p>
58<p>Fix for Bug #1283496: wxPython TheClipboard class causes problems for
59pychecker. Ensure the app has been created before initializing
60wx.TheClipboard.</p>
61<p>Fix for Bug #1352602: FileBrowseButtonWithHistory can't type in Value.</p>
62<p>wxHTML: Added space after list item number.</p>
63<p>wx.lib.printout: Applied patch #1384440.</p>
64<p>wxMSW: Fix for Bug #1293225 Window_FromHWND crashes if parent is
65None.</p>
66<p>Fix for Bug #1261669, use a wx.TE_RICH2 style for the Process demo so
67it doesn't fill up too soon.</p>
68<p>Applied Patch #1354389: wxPython MenuItem SetBitmaps fix.</p>
69<p>Applied Patch #1239456: wxPython wx.DataObject.GetAllFormats fix.</p>
70<p>Applied Patch # #1230107 which allows image handlers to be written in
71Python by deriving from wx.PyImageHandler.</p>
72<p>Applied patch #1072210: generalize printout.py to allow text printing.</p>
73<p>Applied patch #1243907: Give Throbber much more flexibility by
74allowing the user to set the rest image, the direction, the current
75index, custom sequence. Allows user to manually step through the
76sequence with Next(), Previous(), Increment(), Decrement() &amp;
77SetCurrent(). Very handy if you have multiple throbbers that you want
78to synchronize with a single timer.</p>
79<p>Fix for bug #1336711: wx.lib.calendar.CalenDlg can yield incorrect
80result.</p>
81<p>Applied patch from Morgan Hua for updates to ActiveGrid code
82(pydocview, ActiveGrid IDE, etc.)</p>
83<p>Applied patch #1326241: Supporting &quot;setup.py install --install-headers=path&quot;</p>
84<p>Applied patch from Morgan Hua to fix bug #1219423: CommandManager
85should not repeat old commands after a branch.</p>
86<p>Applied patch #1238825 adding search backward capabilities to the
87demo. Modified to use the up/down options in the wx.FindReplaceDialog
88instead of a separate menu item.</p>
89<p>Fix for bug #1266745 and #1387725 in the wx.FindReplaceDialog on MSW.
90Actually check we are using MSLU before doing the hack designed to
91workaround a bug in MSLU!</p>
92<p>wxMSW: wx.lib.iewin.IEHtmlWindow now properly handles tabbing, return
93and other special keys properly.</p>
94<p>Lots of PyCrust enhancments started by Franz Steinaeusler, Adi Sieker,
95and Sebastian Haase, and which in turn were further enhanced, fixed
96tweaked and finished up by me. The changes include the following:</p>
97<blockquote>
98<ul class="simple">
99<li>The Autocomplete and Calltip windows can now be opened manually
100with Ctrl-Space and Ctrl-Shift-Space.</li>
101<li>In the stand alone PyCrust app the various option settings,
102window size and position, and etc. are saved and restored at the
103next run.</li>
104<li>Added a help dialog bound to the F1 key that shows the key
105bindings.</li>
106<li>Added a new text completion function that suggests words from
107the history. Bound to Shift-Return.</li>
108<li>F11 will toggle the maximized state of the frame.</li>
109<li>switched to Bind() from wx.EVT_*().</li>
110<li>Display of line numbers can be toggled.</li>
111<li>F12 toggles a &quot;free edit&quot; mode of the shell buffer. This mode
112is useful, for example, if you would like to remove some output
113or errors or etc. from the buffer before doing a copy/paste.
114The free edit mode is designated by the use of a red,
115non-flashing caret.</li>
486afba9 116<li>Ctrl-Shift-F will fold/unfold (hide/show) the selected lines.</li>
095315e2
RD
117<li>General code cleanup and fixes.</li>
118<li>Use wx.StandardPaths to determine the location of the config
119files.</li>
120<li>Use wx.SP_LIVE_UPDATE on crust and filling windows.</li>
121<li>Extended the saving of the config info and other new features to
122the PyShell app too. Additionally, other apps that embed a
123PyCrust or a PyShell can pass their own wx.Config object and
124have the Py code save/restore its settings to/from there.</li>
125<li>All of the classes with config info get an opportunity to
126save/load their own settings instead of putting all the
127save/load code in one place that then has to reach all over the
128place to do anything.</li>
129<li>Enable editing of the startup python code, which will either be
130the file pointed to by PYTHONSTARTUP or a file in the config dir
131if PYTHONSTARTUP is not set in the environment.</li>
132<li>Added an option to skip the running of the startup code when
133PyShell or PyCrust starts.</li>
134<li>PyCrust adds a pp(item) function to the shell's namespace that
135pretty prints the item in the Display tab of the notebook.
136Added code to raise that tab when pp() is called.</li>
137<li>Added an option for whether to insert text for function
138parameters when popping up the call tip.</li>
139<li>Added Find and Find-Next functions that use the
140wx.FindReplaceDialog.</li>
141</ul>
142</blockquote>
143<p>Applied patches from Will Sadkin for wx.lib.masked modules:</p>
144<blockquote>
145<ul class="simple">
146<li>Now ignores kill focus events when being destroyed.</li>
147<li>Added missing call to set insertion point on changing fields.</li>
148<li>Modified SetKeyHandler() to accept None as means of removing
149one.</li>
150<li>Fixed keyhandler processing for group and decimal character
151changes.</li>
152<li>Fixed a problem that prevented input into the integer digit of a
153integerwidth=1 numctrl, if the current value was 0.</li>
154<li>Fixed logic involving processing of &quot;_signOk&quot; flag, to remove
155default sign key handlers if false, so that
156SetAllowNegative(False) in the NumCtrl works properly.</li>
157<li>Fixed selection logic for numeric controls so that if
158selectOnFieldEntry is true, and the integer portion of an
159integer format control is selected and the sign position is
160selected, the sign keys will always result in a negative value,
161rather than toggling the previous sign.</li>
162</ul>
163</blockquote>
164<p>wx.FontMapper.SetConfig is deprecated. You should instead just set an
165application-wide config object with wx.Config.Set, which wx.FontMapper
166will use by default.</p>
167<p>Added wx.GetMouseState which returns the current state of the mouse.
168It returns an instance of a wx.MouseState object that contains the
169current position of the mouse pointer in screen coordinants, as well
170as boolean values indicating the up/down status of the mouse buttons
171and the modifier keys.</p>
172<p>Added wx.SizerItem.SetUserData</p>
173<p>A variety of updates to wx.lib.floatcanvas, including Added
174DrawObjects, including a ScaledTextBox, with auto-wrapping, etc, and
175Scaled and Unscaled Bitmap Objects.</p>
176<blockquote>
177WARNING: Changed all DrawObjects to take an (x,y) pair rather
178than individual x,y parameters. Also changed rectangles and
179ellipses to take (w,h) pair. This is an API change, but should
180be easy to accommodate, all you need to do is add a parenthesis
181pair: (...x, y, ...) ---&gt; (...(x,y), ...)</blockquote>
182</div>
183<div class="section" id="id2">
184<h1><a name="id2">2.6.1.0</a></h1>
a432a02b
RD
185<ul class="simple">
186<li>4-June-2005</li>
187</ul>
188<p>wx.ListCtrl: patch #1210352, fixes editing in generic wx.ListCtrl with
189wx.LC_EDIT_LABELS.</p>
190<p>Applied patch #208286, MediaCtrl DirectShow rewrite.</p>
191<p>DocView patches from Morgan Hua: bug fixes, and additional SVN
192commands, also added a default template that uses the text editor for
193any unknown file type.</p>
194<p>wxMSW: Use the system IDC_HAND cursor for wx.CURSOR_HAND and only fallback
195to the strange wxWidgets version if the system one is not available.</p>
196<p>wx.grid.Grid: Merge the cell size attribute the same way that other
197attributes are merged, e.g., if it is already set to a non-default
198value in the current GridCellAttr object then don't merge from the
199other.</p>
200<p>wx.lib.evtmgr: Fixed to use wx._core._wxPyDeadObject</p>
201<p>wx.lib.gridmovers: Don't scroll when the mouse is dragged outside of
202the grid, unless the mouse is kept in motion.</p>
203<p>wxMSW: Applied patch #1213290 incorrect logic in
204wx.TopLevelWindow.ShowFullScreen.</p>
205<p>Applied patch #1213066 correct device names for Joystick in Linux.</p>
206<p>wxGTK: Applied patch #1207162 wx.TextCtrl.SetStyle fix for overlapping
207calls.</p>
208<p>wx.FileConfig: fixed DeleteEntry to set the dirty flag properly so the
209change will get written at the next flush.</p>
210</div>
095315e2
RD
211<div class="section" id="id3">
212<h1><a name="id3">2.6.0.1</a></h1>
0979bd01
RD
213<ul class="simple">
214<li>30-May-2005</li>
215</ul>
c66cd08a
RD
216<p>Added wx.BrushFromBitmap to create a stippled brush in a single step.
217Also added missing brysh style flags: wx.STIPPLE_MASK
218wx.STIPPLE_MASK_OPAQUE.</p>
6c75a4cf
RD
219<p>wxMSW: Fix for default control colours when the system text fg colour
220is not black.</p>
c66cd08a
RD
221<p>wxGTK: Patch #1171754, It is now possible to have a menu item that
222both has an icon and is a submenu.</p>
223<p>wxMSW: Patch #1197009, better refreshes when windows are moved and
224resized.</p>
225<p>wxMSW: Patch #1197468. Keeps track of pending size/position changes
226in case there is more than one adjustment for a window in a single
227DeferWindowPos set, then the pending values can be used for defaults
228instead of current values.</p>
229<p>Fixed the typemap that converts a Python list of strings to a
6c75a4cf 230wxArrayString so it uses the wxPython default encoding.</p>
c66cd08a 231<p>Several docstrings added and updated. Lots more to go.</p>
6c75a4cf
RD
232<p>wxMac: Strings added to the clipboard or used in DnD no longer have an
233extra null character at the end.</p>
234<p>Added wx.GetXDisplay that returns a raw swigified pointer for the X11
235Display, or None for the non-X11 platforms.</p>
236<p>wxMenu: Don't send an event when selecting an already selected radio
237item.</p>
238<p>Added wx.LaunchDefaultBrowser.</p>
239<p>wxMSW: Fixed erroneous selection of content in wx.ComboBox when within
240a wx.StaticBox.</p>
241<p>wxMSW: Fixed alpha blitting to take into account source position.</p>
242<p>Ensure that Python is still in an initialized state before doing any
243locking or unlocking in wxPyBeginBlockThreads and wxPyEndBlockThreads
244as these can be triggered after Python has been finalized in embedding
245situations.</p>
246<p>Added alternate constructors for wx.Font: wx.FontFromPixelSize,
247wx.FFont, wx.FFontFromPixelSize. See the docstrings or new api docs
248for details.</p>
249<p>Added wx.lib.hyperlink from Andrea Gavana. It is a control like
250static text that acts like a hyper-link, launching the system's
251default browser in response to the clicks.</p>
252<p>Added an optional parameter to wxversion.select that allows you to
253specify that the extra components specified in the version string are
254required. For example, if you ask for &quot;2.6-unicode&quot; but only the ansi
255version is installed then by default the ansi version will be selected
256as it considered close enough since the version numbers match. If you
257want to force the options to be required then you can just add a True
258parameter, like this:</p>
259<pre class="literal-block">
260import wxversion
261wxversion.select(&quot;2.6-unicode&quot;, True)
262import wx
263</pre>
264<p>Tweaked wx.lib.buttons such that flat buttons (e.g. have no bevel and
265a wx.BORDER_NONE style flag) paint themed backgrounds if there are
266transparent areas and the parent is displaying a theme.</p>
267<p>wxMSW: Fix for wrong sash colour of wx.SplitterWindow in the silver
268theme on XP.</p>
269<p>Added a wx.xrc.XmlResourceHandler for the Ticker class. See
270wx/lib/ticker_xrc.py</p>
271<p>wxSTC: Fixed CmdKeyAssign key bindings for Ctrl-Backspace.</p>
272<p>wxMSW: Fixed a bug in wx.TextCtrl where all the lines were being used
273to calculate the best size, instead of using a reasonable limit.</p>
0979bd01
RD
274<p>XRCed: Use wx.GetDefaultPyEncoding/wx.SetDefaultPyEncoding for
275changing active encoding. Fixed pasting siblings (Ctrl key pressed
276while pasting).</p>
277<p>wx.lib.filebrowsebutton: Bug fix from Chad Netzer for when
278self.history is None.</p>
279<p>wx.ogl: Patch from Davide Salomoni that adds an optional point
280parameter to LineShape.InsertLineControlPoint allowing one to
281optionally specify where the new control point has to be drawn.</p>
282<p>wxMSW: setting foreground colour for wx.CheckBox now works when using
283XP themes.</p>
284<p>More updates to the docview library modules and sample apps from the
285ActiveGrid folks. Their sample IDE is now able to integrate with
286Subversion.</p>
287<p>wx.grid.Grid: Ensure that the grid gets the focus when it is
288left-clicked. Note that if you have custom widgets that handle the
289EVT_LEFT_DOWN event but do not call event.Skip() then you will
290probably want to add a call to self.SetFocus in the event handler.</p>
291<p>wxGTK: Add wxSTAY_ON_TOP support [Patch 1206023]</p>
292<p>wx.TreeCtrl: wx.EVT_TREE_ITEM_MENU event made consistent on all
293platforms. The location of the click or the item is included in the
294event as well.</p>
295<p>wxGTK: Setting background colour of a window now only affects the
296window itself, not the borders, scrollbars, etc. (Bug #1204069)</p>
297<p>Print framework: Add more paper sizes and code to fallback to an
298explicit paper size if a known paper size is not found for the
299printer.</p>
300<p>wxMac: Applied patch for bug #1206181 Option-key decodes are wrong,
301also applied patch for bug #1205691 Modified Fn keys don't work.</p>
302<p>wx.Image: Fixed to preserve alpha channel in Rotate90 method.</p>
303<p>wxMSW: Fixed incorrect background colour on wx.CheckListBox.</p>
304<p>wxMSW: Fixed drawing of owner drawn buttons with multiline labels</p>
305<p>Removed a bunch of unnecessary files, and removed or replaced images
306that we're not sure of their origin or license.</p>
307<p>The default DoGetBestSize is updated to not always return the current
308size if the window has no sizer, children, or minsize set. Instead
309the current size is set as the minsize. This solves the occasional
310problem where a sizer may cause a childless panel to grow but never
311shrink.</p>
312<p>wxMSW: When converting a wx.Icon to a bitmap check if the icon has an
313alpha channel and set the bitmap to use it.</p>
314<p>Fixed the wrong class name used in wx.PyScrolledWindow's call to
315_setCallbackInfo.</p>
316<p>wxMSW: patch #1207202, Fixes GDI leak when using stock cursors.</p>
317<p>wx.calendar.CalendarCtrl: Patch #1207531, Keeps the CalendarCtrl wide
318enough even when the weekday names for the locale are shorter than
319usual.</p>
320<p>Made GridCellNumberEditor.StartingKey also insert the typed char when
321there is a range of allowed values (so a wx.SpinCtrl is used instead
322of a wx.TextCtrl.)</p>
c66cd08a 323</div>
095315e2
RD
324<div class="section" id="id4">
325<h1><a name="id4">2.6.0.0</a></h1>
c66cd08a
RD
326<ul class="simple">
327<li>26-Apr-2005</li>
328</ul>
05d6c206
RD
329<p>wxMSW: Fixed wx.TransientPopupWindow (and therefore wx.TipWindow) to
330auto-dismiss when the mouse is clicked outside of the popup like it is
331supposed to.</p>
332<p>wxMSW: Fixed bug #1167891 wx.Notebook display problem with wx.NB_MULTILINE.</p>
333<p>wxMSW: Fixed bad cliping of hidden windows inside of wx.StaticBox.</p>
334<p>wxGTK: The configure flags for selecting GTK+ 1.2.x or 2.x has
335changed slightly. It is now --with-gtk[=VERSION] where VERSION is
336either '1', '2' or 'any'. The default is '2'.</p>
337<p>wx.stc.StyledTextCtrl: Added the following methods for alternate ways
338to set and fetch text from the document buffer. They work similarly
339to the existing methods of the same name, except that they don't go
340through the same string/unicode &lt;--&gt; wxString conversions. The &quot;Raw&quot;
341methods will do no conversions at all and in a unicode build of
342wxPython the strings will be in the utf-8 encoding and in an ansi
343build no assumption is made about the encoding. The &quot;UTF8&quot; functions
344will attempt to always get/set utf-8 text, which it will always be
345able to do in a unicode build, and in an ansi build it will depend on
346the content of the utf-8 used being compatible with the current
347encoding, (you'll get an exception otherwise.)</p>
348<blockquote>
c66cd08a 349<table border="1" class="docutils">
05d6c206
RD
350<colgroup>
351<col width="49%" />
352<col width="51%" />
353</colgroup>
354<tbody valign="top">
355<tr><td>AddTextRaw</td>
356<td>AddTextUTF8</td>
357</tr>
358<tr><td>InsertTextRaw</td>
359<td>InsertTextUTF8</td>
360</tr>
361<tr><td>GetCurLineRaw</td>
362<td>GetCurLineUTF8</td>
363</tr>
364<tr><td>GetLineRaw</td>
365<td>GetLineUTF8</td>
366</tr>
367<tr><td>GetSelectedTextRaw</td>
368<td>GetSelectedTextUTF8</td>
369</tr>
370<tr><td>GetTextRangeRaw</td>
371<td>GetTextRangeUTF8</td>
372</tr>
373<tr><td>SetTextRaw</td>
374<td>SetTextUTF8</td>
375</tr>
376<tr><td>GetTextRaw</td>
377<td>GetTextUTF8</td>
378</tr>
379<tr><td>AppendTextRaw</td>
380<td>AppendTextUTF8</td>
381</tr>
382</tbody>
383</table>
384</blockquote>
385<p>wx.stc.StyledTextCtrl: Added the StyleSetFontEncoding(style, enc)
386method that allows you to set the encoding to be used by the font for
387a particular style.</p>
388<p>wxMac: Fixed wx.ComboBox to forward the EVT_CHAR, EVT_KEY_DOWN,
389EVT_KEY_UP and EVT_TEXT events from its embedded text control.</p>
390<p>wxMac: Corrected refresh bugs in wxGrid.</p>
c66cd08a 391<dl class="docutils">
a8e120ce
RD
392<dt>XRCed: Updated to version 0.1.5.</dt>
393<dd><ul class="first last simple">
394<li>Added wxWizard, wxWizardPageSimple (only from pull-down menu).</li>
395<li>Hide command for test window.</li>
396<li>Replacing classes works better.</li>
397<li>Added Locate tool.</li>
398</ul>
399</dd>
400</dl>
05d6c206 401</div>
095315e2
RD
402<div class="section" id="id5">
403<h1><a name="id5">2.5.5.1</a></h1>
c66cd08a
RD
404<ul class="simple">
405<li>8-Apr-2005</li>
406</ul>
cae92223
RD
407<p>wxMSW: Fixed bug #1022383, 'several ComboBoxes appear selected'</p>
408<p>wx.grid.Grid: Fixed bug #1163384. Moved the code that handles
409activating the cell editors to a EVT_CHAR event handler. This is done
410so the character inserted into the editor will be the &quot;cooked&quot; char
411value (including accented or composed keys) rather than the raw code
412provided by the EVT_KEY_DOWN event.</p>
413<p>Added orient parameter to wx.MDIParentFrame.Tile()</p>
414<p>wxMSW: wxTextCtrl with wx.TE_RICH2 style now uses RichEdit 4.1 if
415available.</p>
416<p>Added GetCount, GetCountRGB, and GetCountColour methods to
417wx.ImageHistogram.</p>
418<p>wxMSW: wx.Window.Refresh changed to explicitly refresh all children as
419well as the parent. Previously it was implicitly done because parents
420did not clip their children by default. Now that they always clip
421children then Refresh needed to be fixed to do a recursive refresh.
422This also fixes the Freeze/Thaw problems that some people had with
4232.5.4.1.</p>
424<p>wx.SplitterWindow: Send EVT_SPLITTER_SASH_POS_CHANGED only once after
425end of dragging and not after each CHANGING event (modified patch
426#1076226)</p>
427<p>wx.glcanvas.GLCanvas: applied patch fixing problems with X server
428crash when using nVidia cards (patch 1155132)</p>
c66cd08a 429<dl class="docutils">
cae92223
RD
430<dt>wx.lib.mixins.listctrl: Patches from Toni Brkic:</dt>
431<dd><ul class="first last simple">
432<li>Bugfix for TextEditMixin when the view can't be scrolled</li>
05d6c206 433<li>Enhancement for ListCtrlAutoWidthMixin, allowing it to manage
cae92223
RD
434the width of any column.</li>
435</ul>
436</dd>
437</dl>
438<p>wxMac: removal and reusing toolbar tools like the other platforms is
439now possible.</p>
440<p>wxMac: Correct radio tool selection after calling Realize a 2nd time.</p>
441<p>wxMSW: Applied patch #1166587, removes all flicker from wx.StaticBox</p>
442<p>Added wx.lib.foldpanelbar, Andrea Gavana's port of Jorgen Bodde's C++
443wxFoldPanelBar classes to Python.</p>
444<p>wxGTK: Applied patch #1173802, reimplementation of GtkFileChooser
445wxFileDialog by Mart Raudsepp. Note that this new file dialog is only
446used on GTK2 &gt;= 2.4. For earlier GTK2 versions and GTK1 then the
447older generic file dialog is used.</p>
448<p>wxMSW: fixes to static box borders calculations (finalizes patch
449#1166587)</p>
450<p>wx.Image: Use Python's buffer interface API for all image data and
451alpha Set/Get methods and the ImageFromData* constructors. They all
452still copy the buffer except for SetDataBuffer and SetAlphaBuffer, but
453this gives more flexibility on where the data can come from.</p>
454<p>Added MDI support to XRC</p>
455<p>Added wx.animate module and a demo. The wx.animate module provides a
456control that is able to display an animated GIF file.</p>
457<p>wx.lib.plot.py: Applied patch from Werner F. Bruhin that allows either
458vertical and/or horizontal gridlines.</p>
459<p>wxMSW: Extra space given for top border of wx.StaticBoxSizer so the
460upper line is not cliped when there is no label.</p>
461<p>wxMSW: Restored old behaviour of wx.StaticBox.SetBackgroundColour only
462affecting the label.</p>
463<p>wxMSW: Fixed missing EVT_RIGHT_DOWN and EVT_TREE_ITEM_RIGHT_CLICK
464events in a wx.TreeCtrl.</p>
465<p>Added wx.GetTopLevelWindows() function which returns a copy of the
466list of top-level windows that currently exist in the application.</p>
467<p>Updated docview library modules and sample apps from the ActiveGrid
468folks.</p>
469<p>Added the ActiveGrid IDE as a sample application.</p>
470</div>
095315e2
RD
471<div class="section" id="id6">
472<h1><a name="id6">2.5.4.1</a></h1>
c66cd08a
RD
473<ul class="simple">
474<li>16-Mar-2005</li>
475</ul>
287cb697
RD
476<p>wx.Sizer Add, Insert, and Prepend functions now return a reference to the
477wx.SizerItem that was added to the sizer, and the wx.SizerItem has a
478GetRect accessor to give the position of the item on the parent window.</p>
479<p>Added wx.Sizer.GetItem method which returns the wx.SizerItem for the given
480wx.Window, wx.Sizer or position index.</p>
481<p>wxMSW: wx.RadioButtons in the same group no longer have to be
482consecutive (there may be intervening controls). Without this fix, an
483out-of-sync assert is generated when clicking on a radio button and
484then calling GetValue().</p>
c66cd08a 485<dl class="docutils">
05d6c206 486<dt>Some XRC changes:</dt>
287cb697
RD
487<dd><ul class="first last simple">
488<li>Added 'icon' property to wxFrame and wxDialog</li>
489<li>No longer ignores menu bitmaps on non-MSW platforms</li>
490<li>Notebook page bitmaps are now supported</li>
491<li>added system colours and fonts support (based on patch #1038207)</li>
492</ul>
493</dd>
494</dl>
495<p>wxMSW: fix for [ 1052989 ] TextCtrl.SetBackgroundColour(wx.NullColour)
496bug.</p>
497<p>Added wx.PasswordEntryDialog analagous to wx.TextEntryDialog, allows
498detecting entering an empty string vs. cancel unlike the
499wx.GetPasswordFromUser dialog function.</p>
500<p>OGL patch from Shane Holloway:</p>
501<blockquote>
502<p>Two simple problems found in the new python ogl code. First is
503the patch for _canvas.py. Essentially:</p>
504<pre class="literal-block">
505dx = abs(dc.LogicalToDeviceX(x - self._firstDragX))
506dy = abs(dc.LogicalToDeviceY(y - self._firstDragY))
507</pre>
508<p>was incorrect because (x,y) and (self._firstDragX,
509self._firstDragY) are both already in Logical coordinates.
510Therefore the difference between the two is also in logical
511coordinates, and the conversion call is an error. This bug
512surfaces when you have OGL on a scrollwin, and you are far from
513the origin of the canvas.</p>
514<p>The second change in _composit.py basically removes the assumption
515that the child is in both self._children and self._divisions.
516Causes many problems when it's not. ;)</p>
517</blockquote>
518<p>Fixed GetSaveData and SetSaveData in wx.lib.multisash to not depend on
519the default way that class objectss are converted to strings.</p>
520<p>Fixed problem in StyledTextCtrl.Set[HV]ScrollBar that could leave the
521internal scrollbar visible.</p>
522<p>Added wx.StandardPaths which provides methods for determining standard
523system paths for each platform.</p>
524<p>wxMSW: The window background is now only erased by default if the
525background colour or background mode has been changed. This better
526allows the default system themed behaviour to show through for
527uncustomized windows. Explicit support added for using the correct
528theme texture for wx.Notebook pages and their children.</p>
529<p>wx.Image: Added support for alpha channels in interpolated and
530non-interpolated image rotation. Added ConvertAlphaToMask helper
531method for turning shades of grey into shades of alpha and a colour.</p>
532<p>wxGTK2: Reimplemented DoDrawRotatedText() by way of a rotation of an
533alpha blended text bitmap. It would be better if Pango could draw
534directly into an wxImage (as FreeType can,) but that is for later...</p>
535<p>Added wrappers and a demo for the wx.MediaCtrl class, which can play
536various forms of audio/video media using native codecs install on the
537system. So far it is only implemented for Windows and OSX.</p>
538<p>wxGTK: Patch applied for Freeze()/Thaw() for wxTextCtrtl.</p>
539<p>Added &quot;gravity&quot; for splitter window (patch 1046105). Gravity is a
540floating-point factor between 0.0 and 1.0 which controls position of
541sash while resizing the wx.SplitterWindow. The gravity specifies
542how much the left/top window will grow while resizing.</p>
543<p>wxMSW: wx.Slider's C++ implementation rewritten to be more
544maintainable and hopefully less buggy. The position of the labels has
545also been changed in order to better comply with Microsoft's examples
546of how to use the control.</p>
547<p>wxMSW: Fix wx.TreeCtrl to end label editing if the control loses
548focus (a slightly modified patch 1084592.)</p>
549<p>Added wx.EXEC_NODISABLE flag for wx.Execute, which will prevent all
550the app's windows being disabled while a synchronous child process is
551running.</p>
552<p>wxMSW: Much work to correct painting (or leaving transparent) of
553control backgrounds, properly using background themes on XP, etc.</p>
554<p>Fixed a circular reference problem with wx.Timer. It will now
555completely cleanup after itself when the last reference to the timer
556is removed. If you were previously using timer.Destroy() to cleanup
557your timers it will no longer work. Instead you should hold a
558reference to the timer and then del the reference when you are
559finished with the timer.</p>
560<p>Updated to 1.3.24 of SWIG. All of my big patches have been applied to
561the main SWIG source tree, but unfortunatly there were also some bugs
562added that affected the wxPython build and a few details in my
563original patch were changed/removed, so we are still not free of
564patches. A new patch for SWIG is located in the wxPython/SWIG
565directory of the wxPython source tree. SWIG 1.3.24 plus this patch
566should be used by anyone who is making custom modifications to
567wxPython's .i files, or building their own extension modules or
568etc. that need to interact with the wxPython swigged types. For the
569morbidly curious, here are a few more details:</p>
570<blockquote>
571<ul class="simple">
572<li>Since it is now possible easily and simply share the SWIG type
573tables across modules I reverted to always using the stock SWIG
574runtime instead of my slightly hacked up version of it exported
575via the wxPython C API.</li>
576<li>The %name directive is now deprecated so I replaced most uses of
577it with a custom %Rename macro that uses %rename internally.
578These will evetually need to be replaced with a DocDecl macro
579when docstrings are added for those items.</li>
580<li>The &quot;this&quot; attribute of all SWIGged classes is no longer a
581string containing a &quot;swigified pointer&quot;, but rather a custom
582built-in type that holds the real C pointer to the object and
583the type info. It can be converted to a string like the old
584value using str() or to the long integer value of the pointer
585using long().</li>
586</ul>
587</blockquote>
588<p>Added SetDefaultPyEncoding and GetDefaultPyEncoding functions which
589will set/get the encoding used by wxPython to convert string or
590unicode objects to/from wxString objects. Previously the default
591Python encoding was always used, but unless the user had tweaked their
592sitecustomize.py file it is always &quot;ascii&quot;, which would result in
593errors if the strings contained character codes &gt;= 128.
594SetDefaultPyEncoding will now allow you to control which encoding will
595be used to do those conversions. The default encoding is set to the
596value of <cite>locale.getdefaultlocale()[1]</cite> when wxPython is first
597imported. Please see <a class="reference" href="http://www.alanwood.net/demos/charsetdiffs.html">http://www.alanwood.net/demos/charsetdiffs.html</a>
598for information on the differences between the common latin/roman
599encodings.</p>
600<p>Added wxStdDialogButtonSizer, which is a a special sizer that knows
601how to order and position standard buttons in order to conform to the
602current platform's standards. You simply need to add each <cite>wx.Button</cite>
603to the sizer, and be sure to create the buttons using the standard
604ID's. Then call <cite>Realize</cite> and the sizer will take care of the rest.</p>
605<p>wxMSW Toolbar: pass correct tool id (and not always -1) to the
606EVT_TOOL_RCLICKED handler</p>
607<p>wxGTK: Applied patch for combo box SELECTED events (no longer get
608lots of surplus events)</p>
609<p>wxGTK: Applied patch for proper menu highlight colour detection in
610wx.SystemSettings.</p>
611<p>wxGTK: Commited scrollbar patch #1093339 which sends lineup, linedown
612events based on intercepting the mouse down events.</p>
613<p>wxGTK: Applied patch #1102789 which solved conflicts between wxWidgets
614and GTK+'s context menu code.</p>
615<p>wxGTK: Applied patch #1100327 for correct feedback from DND actions
616(not all actions are allowed).</p>
617<p>Fixed memory leak in wxGrid::UpdateAttr[Rows][Or][Cols] (patch 1104355)</p>
618<p>For efficiency reasons, text controls no longer set the string for
619each text updated event, but rather query for the string value only
620when GetString is called from an event handler.</p>
621<p>Added wx.SL_INVERSE style which will cause wx.Slider to invert the min
622and max ends of the slider.</p>
623<p>Several patches applied, such as #1111174, #1110252 and others, that
624make the generic wx.TreeCtrl (used on wxGTK and wxMac) be more
625conistent with the wxMSW native wx.TreeCtrl.</p>
c66cd08a 626<dl class="docutils">
287cb697
RD
627<dt>XRCed:</dt>
628<dd><ul class="first last simple">
629<li>Edit-&gt;Locate command (Ctrl-L) for quick selection of items.
630Works with event-handling controls (buttons, text fields) but
631not with labels/sizers.</li>
632<li>Some improvements: relative paths for files supplied as command-
633line argument work correctly, notebook panels are highlighted
634better.</li>
635</ul>
636</dd>
637</dl>
638<p>wxMac: Fixed a long-standing issue where wxSlider controls with a
639hardcoded size would misplace their labels behind the slider control.</p>
640<p>wx.HtmlListBox fixed so calling RefreshLine(s) will cause the data for
641that line to be refetched from the overridden methods in the derived
642class.</p>
643<p>The default DoGetBestSize now includes the difference (if any) between
644the client size and total size of the window, (such as the size of
645borders.) Code that sets the client size using the best size, or that
646added extra space to sizers to compensate for this bug may need to be
647changed.</p>
648<p>Can suppress themed notebook pages with the wxNB_NOPAGETHEME style or
649setting system option msw.notebook.themed-background to 0.</p>
650<p>wxSyledTextCtrl updated to use Scintilla 1.62.</p>
651<p>Can now set the msw.window.no-clip-children system option to 1 to
652eliminate weird refresh behaviour (delays between a window being
653erased and repainted, giving a ghostly gradual-redraw effect). May be
654a temporary 'fix' until properly fixed before 2.6.</p>
655<p>wxMac: Toolbar is now more native looking with borderless toolbar
656buttons.</p>
657<p>wxMac: Switched wx.Bitmap to use newer Quartz object types and APIs
658internally. This results in faster display and better alpha support.</p>
659<p>Added wx.DatePickerCtrl.</p>
660<p>wx.html.HtmlWindow now supports background images.</p>
661<p>Added wx.lib.gestures module from Daniel Pozmanter which supports
662using Mouse Gestures in an application.</p>
663<p>wxGTK2: ENTER and LEAVE mouse events are now sent for multi-line text
664controls.</p>
665<p>wxMSW: &quot;Alt&quot; key (VK_MENU) now results in WXK_ALT keyboard event, not
666WXK_MENU</p>
667<p>Added modules from Peter Yared and Morgan Hua that implement the wx
668Doc/View framework in pure Python code. See wx.lib.docview for the
669base implementation and wx.lib.pydocview for Python-specific
670extensions. There are also a couple sample applications located in
671samples/docview.</p>
672<p>Added GetBitmap, GetIcon to wx.ImageList.</p>
673<p>wxGTK wx.Button.SetLabel no longer invalidates/resets the font.</p>
674<p>wx.Sizer.AddWindow, AddSizer, AddSpacer and etc. have now been
675undeprecated at the request of Riaan Booysen, the Boa Constructor team
676lead. Boa needs them to help keep track of what kind of item is being
677managed by the sizer. They are now just simple compatibility aliases
678for Add, and etc.</p>
679<p>The old C++ version of the OGL lib is no longer built by default. Use
680the Python version in the wx.lib.ogl package instead.</p>
681<p>The wx.iewin module is no longer built by default. You can use the
682wx.lib.iewin version instead.</p>
683<p>Fixed wx.BufferedPaintDC for scrolled windows to work whether the
684buffer is covering only the client area or the full virtual area of
685the scrolled window. By default it will assume that only the client
686area is covered. This is different than the old behavior so to
687indicate that the entire virtual area is covered simply add a
688style=wx.BUFFER_VIRTUAL_AREA parameter.</p>
689<p>wx.gizmos.TreeListCtrl: Add support for the EVT_TREE_ITEM_GETTOOLTIP
690event.</p>
691<p>Added Resize, SetRGBRect, Size, and GetOrFindMaskColour methods to
692wx.Image.</p>
693<p>Added wx.Rect.IsEmpty</p>
c66cd08a 694<dl class="docutils">
287cb697
RD
695<dt>wxGTK:</dt>
696<dd><ul class="first last simple">
697<li>Corrected wx.ListBox selection handling</li>
698<li>Corrected default button size handling for different themes</li>
699<li>Corrected splitter sash size and look for different themes</li>
700<li>Fixed keyboard input for dead-keys</li>
701</ul>
702</dd>
703</dl>
704</div>
095315e2
RD
705<div class="section" id="id7">
706<h1><a name="id7">2.5.3.1</a></h1>
c66cd08a
RD
707<ul class="simple">
708<li>9-Nov-2004</li>
709</ul>
60b517c1
RD
710<p>wxMac focus and border refreshes corrected.</p>
711<p>Updated internal PNG library.</p>
712<p>wxMac fix for metal appearance on wx.ToolBar.</p>
713<p>wx.grid.Grid fix allowing DoGetBestSize to be called before CreateGrid
714(which means that a min size doesn't need to be specified.)</p>
715<p>wxMac fix for not sending a native click to a control if it is not
716enabled (does an enable itself)</p>
717<p>Added wx.lib.ogl.DrawnShape, and fixed various little bugs in the new
718OGL.</p>
719<p>Added support to XRC and XRCed for the 3-state checkbox flags and also
720for wx.ToggleButton. Updated the generic window styles supported by
721XRCed.</p>
722<p>It is now possible to create &quot;stock&quot; buttons. Basically this means
723that you only have to provide one of the stock IDs (and either an
724empty label or a label that matches the stock label) when creating the
725button and wxWidgets will choose the stock label to go with it
726automatically. Additionally on the platforms that have a native
727concept of a stock button (currently only GTK2) then the native stock
728button will be used. For example, the following will result in a
287cb697
RD
729button with &quot;Cancel&quot; as the label and if run on wxGTK2 then there will
730also be an image of a red X:</p>
60b517c1 731<pre class="literal-block">
05d6c206 732b = wx.Button(parent, wx.ID_CANCEL)
60b517c1
RD
733</pre>
734<p>Added wx.lib.ticker.Ticker class from Chris Mellon.</p>
735<p>Fix some incorrect clipping regions in wxSTC on wxGTK.</p>
736<p>Added wrapper for wx.grid.Grid.GetOrCreateCellAttr.</p>
737<p>Removed my copy of distutils from the wxPython source tree. Now that
738I am no longer doing builds on Python 2.1 the newest distutils is no
739longer needed. (There is still one small bug in Python 2.2 distutils
740on win32, but it is easily worked around.) This sovles the problem of
741incorrect builds on some systems where the system installed distutils
742has been patched to behave slightly differently, for example SuSE on
743x86_64 or Chandler's build.</p>
744<p>Updated to SWIG 1.3.22 (plus my patch.) See wxPython/SWIG/README.txt
745in the source tree if you need to use SWIG when building your own copy
746of wxPython, or other extension modules that need to integrate with
747the wxPython modules.</p>
748<p>Added wx.Frame.RequestUserAttention which, if the platform suports it,
749will do something (such as flash the task bar item) to suggest to the
750user that they should look at that window.</p>
751<p>&quot;Fixed&quot; wx.grid.Grid.SetDefaultEditor and SetDefaultRenderer by making
752them register the editor or renderer for the &quot;string&quot; data type.</p>
753<p>Added depth param to wx.Image.ConvertToBitmap.</p>
754<p>Extended the wx.calendar.CalendarCtrl class with methods that get/set
755a Python datetime or date object. (These will only work with Python
7562.3+) The methods are PySetDate, PyGetDate, PySetLowerDateLimit,
757PySetUpperDateLimit, PySetDateRange, PyGetLowerDateLimit, and
758PyGetUpperDateLimit. Also, CalendarEvent was extended with PySetDate
759and PyGetDate methods.</p>
760<p>wxMSW: SetBackgroundColour on a wx.Choice or a wx.ComboBox will now
761also set the colour of the dropdown.</p>
762<p>wxMac: MessageDialog now supports wx.NO_DEFAULT style</p>
763<p>wxMSW: added AssociateHandle and DissociateHandle to wx.Window</p>
764<p>wxMac: fix for toolbar tooltips</p>
765<p>wx.Sizer.Show (and Hide) now take an optional parameter specifying if
766the item to be shown should be searched for recursivly in subsizers,
767and return a boolean value indicating if the item was found.</p>
768<p>wxMSW: fixed MaximizeEvent generation in wx.Frame</p>
769<p>wxMSW: fixed sending duplicate EVT_COMBOBOX events</p>
770<p>Smoother time estimation updates in wx.ProgressDialog (patch 992813)</p>
771<p>Made wx.Listbook events more consistent with wx.Notebook ones (patch
7721001271)</p>
773<p>Fixed rounding errors in variable status bar panes widths computation
774(patch 1030021)</p>
775<p>Added possibility to specify printer bin (patch 910272)</p>
776<p>wxMSW: fixed wx.ListCtrl's SetWindowStyleFlag() to not remove
777WS_VISIBLE; also refresh the control automatically (closes bug
7781019440)</p>
779<p>Added wx.Choicebook, yet another notebook-like control.</p>
780<p>wxMSW: Make radiobutton tab behaviour the same on MSW as in standard
781MSW app, i.e. tab into the activated, not necessarily the first radio
782button.</p>
783<p>Added limited support for wxEventLoop (you can't derive from a
784wx.PyEventLoop version yet...) Updated and moved the sample showing
785how to replace the MainLoop to samples/mainloop/mainloop.py.</p>
786<p>The C++ xrc lib has been moved out of contrib and into the core, so it
787is always built by default. wxPython's build has also changed
788accordingly and will build the xrc module as part of the core set of
789modules built by default. If you were axplicitly using BUILD_XRC then
790it will no longer be recognized as a build option, otherwise you
791should notice no difference.</p>
792<p>wxMac: Fixed radio toolbar buttons to correctly untoggle the others
793when a new one is selected.</p>
794<p>wxMac: Fixed GetLineLength and GetLineText for MLTE text controls</p>
795<p>wxMac: wx.TaskBarIcon is implemented by allowing you to change the
796app's icon on the Dock and also specifying a menu that should be
797merged with the normal dock popup menu. See the MigrationGuide for
798more details and a warning.</p>
799<p>Added wx.TopLevelWindow.IsActive() which tells you if the frame or
800dialog is or containts the active window with the keyboard focus.</p>
801<p>Added ability to create a font based on pixel size rather than point
802size via the FontFromPixelSize constructor.</p>
803<p>Updated the Scintilla used by StyledTextCtrl to version 1.61</p>
804<p>Improved image HitTest for TreeListCtrl.</p>
805<p>Added wx.App.IsMainLoopRunning.</p>
806<p>wxGTK: Make wxComboBox spit out a bit fewer surplus events when
807holding down the mouse button.</p>
808<p>wxGTK: Enable key based navigation through notebook tabs as in the
809native control with Left and right keys. Support for vetoing.</p>
810<p>FloatCanvas updates from Chris Barker</p>
c66cd08a 811<dl class="docutils">
60b517c1
RD
812<dt>PyPlot updates from Gordon Williams:</dt>
813<dd><ul class="first last simple">
814<li>Added bar graph demo</li>
815<li>Modified line end shape from round to square.</li>
816<li>Removed FloatDCWrapper for conversion to ints and ints in
817arguments</li>
818<li>Imported modules given leading underscore to name.</li>
819<li>Added Cursor Line Tracking and User Point Labels.</li>
820<li>Demo for Cursor Line Tracking and Point Labels.</li>
821<li>Size of plot preview frame adjusted to show page better.</li>
822<li>Added helper functions PositionUserToScreen and
823PositionScreenToUser in PlotCanvas.</li>
824<li>Added functions GetClosestPoints (all curves) and GetClosestPoint
825(only closest curve) can be in either user coords or screen
826coords.</li>
827</ul>
828</dd>
829<dt>MaskedEdit updates from Will Sadkin:</dt>
830<dd><ul class="first last simple">
831<li>Added '*' mask char that means &quot;all ansii chars&quot; (ords 32-255)</li>
832<li>Added proper unicode support to masked controls and wx.tools.dbg</li>
833<li>Fixed two reported missing import bugs introduced by package
834creation</li>
835<li>Converted masked package doc strings to reST format for better
836epydoc support</li>
837<li>lots of doc string improvements and function hiding to better
838reflect package's public contents.</li>
839</ul>
840</dd>
841</dl>
842<p>Restructured the installer packages slightly to help facilitate having
843multiple versions of wxPython installed at the same time. See the
844Migrarion Guide for more information.</p>
c66cd08a 845<dl class="docutils">
60b517c1
RD
846<dt>Applied patch from Pim Van Heuven that modifies 4 files:</dt>
847<dd><ul class="first last simple">
848<li>wxPython/demo/ListCtrl_edit.py (new demo)</li>
849<li>wxPython/demo/Main.py (include new demo in demo app)</li>
05d6c206 850<li>wxPython/wx/lib/mixins/listctrl.py (several improvements to
60b517c1
RD
851TextEditMixin)</li>
852<li>wxPython/wx/lib/wxpTag.py (some small fixes)</li>
853</ul>
854</dd>
855</dl>
856<p>Added (thanks to Kevin Ollivier!) wrappers for wx.WebKitCtrl for the
857OSX build. Other platforms will raise an exception if you try to use
858it.</p>
859<p>wxPython on OSX can now be built in Unicode mode, can support multiple
860version installs, and comes with an uninstaller script.</p>
861</div>
095315e2
RD
862<div class="section" id="id8">
863<h1><a name="id8">2.5.2.8</a></h1>
c66cd08a
RD
864<ul class="simple">
865<li>27-Aug-2004</li>
866</ul>
df1a2934
RD
867<p>Predominantly a bug-fix release.</p>
868<blockquote>
869<ul class="simple">
870<li>Fixed fatal error due to improper wrapping of wx.FSFile.</li>
871<li>Fixed return type of EditableListBox.GetListCtrl</li>
872<li>Give generic tree and list controls a DoGetBestSize so they play
873nicer with sizers when there is no minimal size.</li>
874<li>Some tweaks in the demo and samples to correct layout, some
875flicker problems, and namespace use.</li>
876<li>Add wx.Image.ConvertAlphaToMask</li>
877<li>Minor corrections in wx.lib.dialogs</li>
878<li>wx.FileHistory constructor now accepts the documented 2nd
879parameter.</li>
880<li>Corrections for exceptions in the new ogl</li>
881<li>Fixed XRCed to not use reparenting of windows to implement caching
882of property panels, since Reparent on wxMac is not implemented.</li>
883<li>Add support for wxTAB_TRAVERSAL to the XRC handler for
884wxScrolledWindow.</li>
885<li>Add support for all wxListBox styles to the XRC handler for
886wxCheckListBox.</li>
887<li>Fix for wx.Listbook.DeleteAllPages to really delete everything.</li>
888<li>wxGTK2 now supports alpha blended bitmap drawing</li>
889<li>Made wx.grid.Grid play nicer with sizers.</li>
890<li>etc.</li>
891</ul>
892</blockquote>
893</div>
095315e2
RD
894<div class="section" id="id9">
895<h1><a name="id9">2.5.2.7</a></h1>
c66cd08a
RD
896<ul class="simple">
897<li>14-Aug-2004</li>
898</ul>
40efbdda
RD
899<p>wx.ADJUST_MINSIZE is now the default behaviour for window items in
900sizers. This means that the item's GetMinSize and/or GetBestSize will
901be called when calculating layout and the return value from that will
902be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE
903flag was added that will cause the sizer to use the old behaviour in
904that it will <em>not</em> call the window's methods to determine the new best
905size, instead the minsize that the window had when added to the sizer
da2c7672
RD
906(or the size the window was created with) will always be used. Please
907see the Sizers section in the Migration Guide for more details.</p>
40efbdda
RD
908<p>Added new MaskedEditControl code from Will Sadkin. The modules are
909now locaed in their own sub-package, wx.lib.masked. Demos updated.</p>
910<p>The changes that implemented the incompatible wx.DC methods in 2.5.1.5
911have been reverted. The wx.DC methods are now compatible with the 2.4
912implemetation. In addition a set of renamed methods have been added
913that take wx.Point and/or wx.Size objects instead of individual
914parameters.</p>
915<p>Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
916all columns of a wx.ListCtrl in report mode to be edited.</p>
917<p>Deprecated the wx.iewin module.</p>
918<p>Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well
919as their Insert* and Prepend* counterparts.</p>
920<p>Added a generic StaticBitmap class in wx.lib.statbmp for the same
921reasons that stattext was created, so it could be mouse sensitive on
922all platforms like normal windows. Also updated stattext.py and
923buttons.py to handle attribute (font &amp; colour) defaults and
924inheritance the new way. If you have custom controls of your own you
925should review stattxt.py or one of the others to see how it is to be
926done.</p>
927<p>wx.InitAllImageHandlers is now an empty function that does nothing but
928exist for backwards compatibility. The C++ version is now called
929automatically when wxPython is initialized. Since all the handlers
930are included in the wxWidgets shared library anyway, this imposes only
931a very small amount of overhead and removes several unneccessary
932problems.</p>
933<p>Replaced wx/lib/pubsub.py with a version that uses weak references to
934track the subscribers, plus other fixes/additions. Thanks go to
935Oliver Schoenborn and Robb Shecter.</p>
936<p>wxGTK now uses gtk_init_check so wxPython can raise an exception if
937there is no DISPLAY available or other initializaion problem.</p>
938<p>wx.GetKeyState now has an implementation for wxGTK and is able to
939detect the up/down or toggle state of modifier and toggle keys.</p>
940<p>The LC_NUMERIC locale is now reset back to &quot;C&quot; (compatibility) when
941running on wxGTK to work around the fact that GTK requires the locale
942to be set to the system settings but Python depends on LC_NUMERIC
943remaining compatible with &quot;C&quot;.</p>
944<p>Switched gizmos.TreeListCtrl to the newer version of the code from the
945wxCode project.</p>
946<p>OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
947leaked out there...) The wx.ogl module has been deprecated in favor
948of the new Python port of the OGL library located at wx.lib.ogl
949