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