]> git.saurik.com Git - wxWidgets.git/blob - wxPython/docs/CHANGES.html
fix crashes in the calctl sample under OS/2 (patch 1495898)
[wxWidgets.git] / wxPython / docs / CHANGES.html
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6 <meta name="generator" content="Docutils 0.3.7: http://docutils.sourceforge.net/" />
7 <title>Recent Changes for wxPython</title>
8 <link rel="stylesheet" href="default.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="recent-changes-for-wxpython">
12 <h1 class="title">Recent Changes for wxPython</h1>
13 <div class="section" id="id1">
14 <h1><a name="id1">2.6.2.1</a></h1>
15 <ul class="simple">
16 <li>10-Jan-2006</li>
17 </ul>
18 <p>wxMSW: Fix for bug #1211907, popup menu indenting inconsistent with
19 bitmaps.</p>
20 <p>wxMac: Don't send an event for wx.RadioButton deselections, just the
21 selections. This was done to make it consistent with the other
22 platforms.</p>
23 <p>wxMSW: Always set flat toolbar style, even under XP with themes: this
24 is 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
29 MultiSplitterWindow class. This class is much like the standard
30 wx.SplitterWindow class, except it allows more than one split, so it
31 can 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">
35 New feature added to the IDE is 'Extensions'. Under
36 Tools|Options|Extensions, you can add calls to external programs.
37 For example you can add a &quot;Notepad&quot; extension (under windows) that
38 will exec Notepad on the currently open file. A new &quot;Notepad&quot;
39 menu 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,
46 DatePicker), and completed style flags. Test window is opened
47 for an available parent control if no specific view
48 defined. 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
52 the range for wxSpinCtrl min/max to all integers (default 0/100
53 is not always good).</li>
54 </ul>
55 </blockquote>
56 <p>Updates for wx.lib.foldpanelbar and wx.lib.hyperlink from Andrea
57 Gavana.</p>
58 <p>Fix for Bug #1283496: wxPython TheClipboard class causes problems for
59 pychecker. Ensure the app has been created before initializing
60 wx.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
65 None.</p>
66 <p>Fix for Bug #1261669, use a wx.TE_RICH2 style for the Process demo so
67 it 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
71 Python 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
74 allowing the user to set the rest image, the direction, the current
75 index, custom sequence. Allows user to manually step through the
76 sequence with Next(), Previous(), Increment(), Decrement() &amp;
77 SetCurrent(). Very handy if you have multiple throbbers that you want
78 to synchronize with a single timer.</p>
79 <p>Fix for bug #1336711: wx.lib.calendar.CalenDlg can yield incorrect
80 result.</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
85 should not repeat old commands after a branch.</p>
86 <p>Applied patch #1238825 adding search backward capabilities to the
87 demo. Modified to use the up/down options in the wx.FindReplaceDialog
88 instead of a separate menu item.</p>
89 <p>Fix for bug #1266745 and #1387725 in the wx.FindReplaceDialog on MSW.
90 Actually check we are using MSLU before doing the hack designed to
91 workaround a bug in MSLU!</p>
92 <p>wxMSW: wx.lib.iewin.IEHtmlWindow now properly handles tabbing, return
93 and other special keys properly.</p>
94 <p>Lots of PyCrust enhancments started by Franz Steinaeusler, Adi Sieker,
95 and Sebastian Haase, and which in turn were further enhanced, fixed
96 tweaked 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
100 with Ctrl-Space and Ctrl-Shift-Space.</li>
101 <li>In the stand alone PyCrust app the various option settings,
102 window size and position, and etc. are saved and restored at the
103 next run.</li>
104 <li>Added a help dialog bound to the F1 key that shows the key
105 bindings.</li>
106 <li>Added a new text completion function that suggests words from
107 the 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
112 is useful, for example, if you would like to remove some output
113 or errors or etc. from the buffer before doing a copy/paste.
114 The free edit mode is designated by the use of a red,
115 non-flashing caret.</li>
116 <li>Ctrl-Shift-F will fold/unfold (hide/show) the selected lines.</li>
117 <li>General code cleanup and fixes.</li>
118 <li>Use wx.StandardPaths to determine the location of the config
119 files.</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
122 the PyShell app too. Additionally, other apps that embed a
123 PyCrust or a PyShell can pass their own wx.Config object and
124 have the Py code save/restore its settings to/from there.</li>
125 <li>All of the classes with config info get an opportunity to
126 save/load their own settings instead of putting all the
127 save/load code in one place that then has to reach all over the
128 place to do anything.</li>
129 <li>Enable editing of the startup python code, which will either be
130 the file pointed to by PYTHONSTARTUP or a file in the config dir
131 if PYTHONSTARTUP is not set in the environment.</li>
132 <li>Added an option to skip the running of the startup code when
133 PyShell or PyCrust starts.</li>
134 <li>PyCrust adds a pp(item) function to the shell's namespace that
135 pretty prints the item in the Display tab of the notebook.
136 Added code to raise that tab when pp() is called.</li>
137 <li>Added an option for whether to insert text for function
138 parameters when popping up the call tip.</li>
139 <li>Added Find and Find-Next functions that use the
140 wx.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
149 one.</li>
150 <li>Fixed keyhandler processing for group and decimal character
151 changes.</li>
152 <li>Fixed a problem that prevented input into the integer digit of a
153 integerwidth=1 numctrl, if the current value was 0.</li>
154 <li>Fixed logic involving processing of &quot;_signOk&quot; flag, to remove
155 default sign key handlers if false, so that
156 SetAllowNegative(False) in the NumCtrl works properly.</li>
157 <li>Fixed selection logic for numeric controls so that if
158 selectOnFieldEntry is true, and the integer portion of an
159 integer format control is selected and the sign position is
160 selected, the sign keys will always result in a negative value,
161 rather than toggling the previous sign.</li>
162 </ul>
163 </blockquote>
164 <p>wx.FontMapper.SetConfig is deprecated. You should instead just set an
165 application-wide config object with wx.Config.Set, which wx.FontMapper
166 will use by default.</p>
167 <p>Added wx.GetMouseState which returns the current state of the mouse.
168 It returns an instance of a wx.MouseState object that contains the
169 current position of the mouse pointer in screen coordinants, as well
170 as boolean values indicating the up/down status of the mouse buttons
171 and the modifier keys.</p>
172 <p>Added wx.SizerItem.SetUserData</p>
173 <p>A variety of updates to wx.lib.floatcanvas, including Added
174 DrawObjects, including a ScaledTextBox, with auto-wrapping, etc, and
175 Scaled and Unscaled Bitmap Objects.</p>
176 <blockquote>
177 WARNING: Changed all DrawObjects to take an (x,y) pair rather
178 than individual x,y parameters. Also changed rectangles and
179 ellipses to take (w,h) pair. This is an API change, but should
180 be easy to accommodate, all you need to do is add a parenthesis
181 pair: (...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>
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
189 wx.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
192 commands, also added a default template that uses the text editor for
193 any unknown file type.</p>
194 <p>wxMSW: Use the system IDC_HAND cursor for wx.CURSOR_HAND and only fallback
195 to 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
197 attributes are merged, e.g., if it is already set to a non-default
198 value in the current GridCellAttr object then don't merge from the
199 other.</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
202 the grid, unless the mouse is kept in motion.</p>
203 <p>wxMSW: Applied patch #1213290 incorrect logic in
204 wx.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
207 calls.</p>
208 <p>wx.FileConfig: fixed DeleteEntry to set the dirty flag properly so the
209 change will get written at the next flush.</p>
210 </div>
211 <div class="section" id="id3">
212 <h1><a name="id3">2.6.0.1</a></h1>
213 <ul class="simple">
214 <li>30-May-2005</li>
215 </ul>
216 <p>Added wx.BrushFromBitmap to create a stippled brush in a single step.
217 Also added missing brysh style flags: wx.STIPPLE_MASK
218 wx.STIPPLE_MASK_OPAQUE.</p>
219 <p>wxMSW: Fix for default control colours when the system text fg colour
220 is not black.</p>
221 <p>wxGTK: Patch #1171754, It is now possible to have a menu item that
222 both has an icon and is a submenu.</p>
223 <p>wxMSW: Patch #1197009, better refreshes when windows are moved and
224 resized.</p>
225 <p>wxMSW: Patch #1197468. Keeps track of pending size/position changes
226 in case there is more than one adjustment for a window in a single
227 DeferWindowPos set, then the pending values can be used for defaults
228 instead of current values.</p>
229 <p>Fixed the typemap that converts a Python list of strings to a
230 wxArrayString so it uses the wxPython default encoding.</p>
231 <p>Several docstrings added and updated. Lots more to go.</p>
232 <p>wxMac: Strings added to the clipboard or used in DnD no longer have an
233 extra null character at the end.</p>
234 <p>Added wx.GetXDisplay that returns a raw swigified pointer for the X11
235 Display, or None for the non-X11 platforms.</p>
236 <p>wxMenu: Don't send an event when selecting an already selected radio
237 item.</p>
238 <p>Added wx.LaunchDefaultBrowser.</p>
239 <p>wxMSW: Fixed erroneous selection of content in wx.ComboBox when within
240 a 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
243 locking or unlocking in wxPyBeginBlockThreads and wxPyEndBlockThreads
244 as these can be triggered after Python has been finalized in embedding
245 situations.</p>
246 <p>Added alternate constructors for wx.Font: wx.FontFromPixelSize,
247 wx.FFont, wx.FFontFromPixelSize. See the docstrings or new api docs
248 for details.</p>
249 <p>Added wx.lib.hyperlink from Andrea Gavana. It is a control like
250 static text that acts like a hyper-link, launching the system's
251 default browser in response to the clicks.</p>
252 <p>Added an optional parameter to wxversion.select that allows you to
253 specify that the extra components specified in the version string are
254 required. For example, if you ask for &quot;2.6-unicode&quot; but only the ansi
255 version is installed then by default the ansi version will be selected
256 as it considered close enough since the version numbers match. If you
257 want to force the options to be required then you can just add a True
258 parameter, like this:</p>
259 <pre class="literal-block">
260 import wxversion
261 wxversion.select(&quot;2.6-unicode&quot;, True)
262 import wx
263 </pre>
264 <p>Tweaked wx.lib.buttons such that flat buttons (e.g. have no bevel and
265 a wx.BORDER_NONE style flag) paint themed backgrounds if there are
266 transparent areas and the parent is displaying a theme.</p>
267 <p>wxMSW: Fix for wrong sash colour of wx.SplitterWindow in the silver
268 theme on XP.</p>
269 <p>Added a wx.xrc.XmlResourceHandler for the Ticker class. See
270 wx/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
273 to calculate the best size, instead of using a reasonable limit.</p>
274 <p>XRCed: Use wx.GetDefaultPyEncoding/wx.SetDefaultPyEncoding for
275 changing active encoding. Fixed pasting siblings (Ctrl key pressed
276 while pasting).</p>
277 <p>wx.lib.filebrowsebutton: Bug fix from Chad Netzer for when
278 self.history is None.</p>
279 <p>wx.ogl: Patch from Davide Salomoni that adds an optional point
280 parameter to LineShape.InsertLineControlPoint allowing one to
281 optionally specify where the new control point has to be drawn.</p>
282 <p>wxMSW: setting foreground colour for wx.CheckBox now works when using
283 XP themes.</p>
284 <p>More updates to the docview library modules and sample apps from the
285 ActiveGrid folks. Their sample IDE is now able to integrate with
286 Subversion.</p>
287 <p>wx.grid.Grid: Ensure that the grid gets the focus when it is
288 left-clicked. Note that if you have custom widgets that handle the
289 EVT_LEFT_DOWN event but do not call event.Skip() then you will
290 probably 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
293 platforms. The location of the click or the item is included in the
294 event as well.</p>
295 <p>wxGTK: Setting background colour of a window now only affects the
296 window itself, not the borders, scrollbars, etc. (Bug #1204069)</p>
297 <p>Print framework: Add more paper sizes and code to fallback to an
298 explicit paper size if a known paper size is not found for the
299 printer.</p>
300 <p>wxMac: Applied patch for bug #1206181 Option-key decodes are wrong,
301 also 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
306 that we're not sure of their origin or license.</p>
307 <p>The default DoGetBestSize is updated to not always return the current
308 size if the window has no sizer, children, or minsize set. Instead
309 the current size is set as the minsize. This solves the occasional
310 problem where a sizer may cause a childless panel to grow but never
311 shrink.</p>
312 <p>wxMSW: When converting a wx.Icon to a bitmap check if the icon has an
313 alpha 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
318 enough even when the weekday names for the locale are shorter than
319 usual.</p>
320 <p>Made GridCellNumberEditor.StartingKey also insert the typed char when
321 there is a range of allowed values (so a wx.SpinCtrl is used instead
322 of a wx.TextCtrl.)</p>
323 </div>
324 <div class="section" id="id4">
325 <h1><a name="id4">2.6.0.0</a></h1>
326 <ul class="simple">
327 <li>26-Apr-2005</li>
328 </ul>
329 <p>wxMSW: Fixed wx.TransientPopupWindow (and therefore wx.TipWindow) to
330 auto-dismiss when the mouse is clicked outside of the popup like it is
331 supposed 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
335 changed slightly. It is now --with-gtk[=VERSION] where VERSION is
336 either '1', '2' or 'any'. The default is '2'.</p>
337 <p>wx.stc.StyledTextCtrl: Added the following methods for alternate ways
338 to set and fetch text from the document buffer. They work similarly
339 to the existing methods of the same name, except that they don't go
340 through the same string/unicode &lt;--&gt; wxString conversions. The &quot;Raw&quot;
341 methods will do no conversions at all and in a unicode build of
342 wxPython the strings will be in the utf-8 encoding and in an ansi
343 build no assumption is made about the encoding. The &quot;UTF8&quot; functions
344 will attempt to always get/set utf-8 text, which it will always be
345 able to do in a unicode build, and in an ansi build it will depend on
346 the content of the utf-8 used being compatible with the current
347 encoding, (you'll get an exception otherwise.)</p>
348 <blockquote>
349 <table border="1" class="docutils">
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)
386 method that allows you to set the encoding to be used by the font for
387 a particular style.</p>
388 <p>wxMac: Fixed wx.ComboBox to forward the EVT_CHAR, EVT_KEY_DOWN,
389 EVT_KEY_UP and EVT_TEXT events from its embedded text control.</p>
390 <p>wxMac: Corrected refresh bugs in wxGrid.</p>
391 <dl class="docutils">
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>
401 </div>
402 <div class="section" id="id5">
403 <h1><a name="id5">2.5.5.1</a></h1>
404 <ul class="simple">
405 <li>8-Apr-2005</li>
406 </ul>
407 <p>wxMSW: Fixed bug #1022383, 'several ComboBoxes appear selected'</p>
408 <p>wx.grid.Grid: Fixed bug #1163384. Moved the code that handles
409 activating the cell editors to a EVT_CHAR event handler. This is done
410 so the character inserted into the editor will be the &quot;cooked&quot; char
411 value (including accented or composed keys) rather than the raw code
412 provided 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
415 available.</p>
416 <p>Added GetCount, GetCountRGB, and GetCountColour methods to
417 wx.ImageHistogram.</p>
418 <p>wxMSW: wx.Window.Refresh changed to explicitly refresh all children as
419 well as the parent. Previously it was implicitly done because parents
420 did not clip their children by default. Now that they always clip
421 children then Refresh needed to be fixed to do a recursive refresh.
422 This also fixes the Freeze/Thaw problems that some people had with
423 2.5.4.1.</p>
424 <p>wx.SplitterWindow: Send EVT_SPLITTER_SASH_POS_CHANGED only once after
425 end 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
428 crash when using nVidia cards (patch 1155132)</p>
429 <dl class="docutils">
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>
433 <li>Enhancement for ListCtrlAutoWidthMixin, allowing it to manage
434 the width of any column.</li>
435 </ul>
436 </dd>
437 </dl>
438 <p>wxMac: removal and reusing toolbar tools like the other platforms is
439 now 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++
443 wxFoldPanelBar classes to Python.</p>
444 <p>wxGTK: Applied patch #1173802, reimplementation of GtkFileChooser
445 wxFileDialog by Mart Raudsepp. Note that this new file dialog is only
446 used on GTK2 &gt;= 2.4. For earlier GTK2 versions and GTK1 then the
447 older 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
451 alpha Set/Get methods and the ImageFromData* constructors. They all
452 still copy the buffer except for SetDataBuffer and SetAlphaBuffer, but
453 this 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
456 control 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
458 vertical and/or horizontal gridlines.</p>
459 <p>wxMSW: Extra space given for top border of wx.StaticBoxSizer so the
460 upper line is not cliped when there is no label.</p>
461 <p>wxMSW: Restored old behaviour of wx.StaticBox.SetBackgroundColour only
462 affecting the label.</p>
463 <p>wxMSW: Fixed missing EVT_RIGHT_DOWN and EVT_TREE_ITEM_RIGHT_CLICK
464 events in a wx.TreeCtrl.</p>
465 <p>Added wx.GetTopLevelWindows() function which returns a copy of the
466 list of top-level windows that currently exist in the application.</p>
467 <p>Updated docview library modules and sample apps from the ActiveGrid
468 folks.</p>
469 <p>Added the ActiveGrid IDE as a sample application.</p>
470 </div>
471 <div class="section" id="id6">
472 <h1><a name="id6">2.5.4.1</a></h1>
473 <ul class="simple">
474 <li>16-Mar-2005</li>
475 </ul>
476 <p>wx.Sizer Add, Insert, and Prepend functions now return a reference to the
477 wx.SizerItem that was added to the sizer, and the wx.SizerItem has a
478 GetRect 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
480 wx.Window, wx.Sizer or position index.</p>
481 <p>wxMSW: wx.RadioButtons in the same group no longer have to be
482 consecutive (there may be intervening controls). Without this fix, an
483 out-of-sync assert is generated when clicking on a radio button and
484 then calling GetValue().</p>
485 <dl class="docutils">
486 <dt>Some XRC changes:</dt>
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)
496 bug.</p>
497 <p>Added wx.PasswordEntryDialog analagous to wx.TextEntryDialog, allows
498 detecting entering an empty string vs. cancel unlike the
499 wx.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
503 the patch for _canvas.py. Essentially:</p>
504 <pre class="literal-block">
505 dx = abs(dc.LogicalToDeviceX(x - self._firstDragX))
506 dy = abs(dc.LogicalToDeviceY(y - self._firstDragY))
507 </pre>
508 <p>was incorrect because (x,y) and (self._firstDragX,
509 self._firstDragY) are both already in Logical coordinates.
510 Therefore the difference between the two is also in logical
511 coordinates, and the conversion call is an error. This bug
512 surfaces when you have OGL on a scrollwin, and you are far from
513 the origin of the canvas.</p>
514 <p>The second change in _composit.py basically removes the assumption
515 that the child is in both self._children and self._divisions.
516 Causes many problems when it's not. ;)</p>
517 </blockquote>
518 <p>Fixed GetSaveData and SetSaveData in wx.lib.multisash to not depend on
519 the default way that class objectss are converted to strings.</p>
520 <p>Fixed problem in StyledTextCtrl.Set[HV]ScrollBar that could leave the
521 internal scrollbar visible.</p>
522 <p>Added wx.StandardPaths which provides methods for determining standard
523 system paths for each platform.</p>
524 <p>wxMSW: The window background is now only erased by default if the
525 background colour or background mode has been changed. This better
526 allows the default system themed behaviour to show through for
527 uncustomized windows. Explicit support added for using the correct
528 theme texture for wx.Notebook pages and their children.</p>
529 <p>wx.Image: Added support for alpha channels in interpolated and
530 non-interpolated image rotation. Added ConvertAlphaToMask helper
531 method 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
533 alpha blended text bitmap. It would be better if Pango could draw
534 directly 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
536 various forms of audio/video media using native codecs install on the
537 system. 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
540 floating-point factor between 0.0 and 1.0 which controls position of
541 sash while resizing the wx.SplitterWindow. The gravity specifies
542 how much the left/top window will grow while resizing.</p>
543 <p>wxMSW: wx.Slider's C++ implementation rewritten to be more
544 maintainable and hopefully less buggy. The position of the labels has
545 also been changed in order to better comply with Microsoft's examples
546 of how to use the control.</p>
547 <p>wxMSW: Fix wx.TreeCtrl to end label editing if the control loses
548 focus (a slightly modified patch 1084592.)</p>
549 <p>Added wx.EXEC_NODISABLE flag for wx.Execute, which will prevent all
550 the app's windows being disabled while a synchronous child process is
551 running.</p>
552 <p>wxMSW: Much work to correct painting (or leaving transparent) of
553 control backgrounds, properly using background themes on XP, etc.</p>
554 <p>Fixed a circular reference problem with wx.Timer. It will now
555 completely cleanup after itself when the last reference to the timer
556 is removed. If you were previously using timer.Destroy() to cleanup
557 your timers it will no longer work. Instead you should hold a
558 reference to the timer and then del the reference when you are
559 finished with the timer.</p>
560 <p>Updated to 1.3.24 of SWIG. All of my big patches have been applied to
561 the main SWIG source tree, but unfortunatly there were also some bugs
562 added that affected the wxPython build and a few details in my
563 original patch were changed/removed, so we are still not free of
564 patches. A new patch for SWIG is located in the wxPython/SWIG
565 directory of the wxPython source tree. SWIG 1.3.24 plus this patch
566 should be used by anyone who is making custom modifications to
567 wxPython's .i files, or building their own extension modules or
568 etc. that need to interact with the wxPython swigged types. For the
569 morbidly 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
573 tables across modules I reverted to always using the stock SWIG
574 runtime instead of my slightly hacked up version of it exported
575 via the wxPython C API.</li>
576 <li>The %name directive is now deprecated so I replaced most uses of
577 it with a custom %Rename macro that uses %rename internally.
578 These will evetually need to be replaced with a DocDecl macro
579 when docstrings are added for those items.</li>
580 <li>The &quot;this&quot; attribute of all SWIGged classes is no longer a
581 string containing a &quot;swigified pointer&quot;, but rather a custom
582 built-in type that holds the real C pointer to the object and
583 the type info. It can be converted to a string like the old
584 value using str() or to the long integer value of the pointer
585 using long().</li>
586 </ul>
587 </blockquote>
588 <p>Added SetDefaultPyEncoding and GetDefaultPyEncoding functions which
589 will set/get the encoding used by wxPython to convert string or
590 unicode objects to/from wxString objects. Previously the default
591 Python encoding was always used, but unless the user had tweaked their
592 sitecustomize.py file it is always &quot;ascii&quot;, which would result in
593 errors if the strings contained character codes &gt;= 128.
594 SetDefaultPyEncoding will now allow you to control which encoding will
595 be used to do those conversions. The default encoding is set to the
596 value of <cite>locale.getdefaultlocale()[1]</cite> when wxPython is first
597 imported. Please see <a class="reference" href="http://www.alanwood.net/demos/charsetdiffs.html">http://www.alanwood.net/demos/charsetdiffs.html</a>
598 for information on the differences between the common latin/roman
599 encodings.</p>
600 <p>Added wxStdDialogButtonSizer, which is a a special sizer that knows
601 how to order and position standard buttons in order to conform to the
602 current platform's standards. You simply need to add each <cite>wx.Button</cite>
603 to the sizer, and be sure to create the buttons using the standard
604 ID'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
606 EVT_TOOL_RCLICKED handler</p>
607 <p>wxGTK: Applied patch for combo box SELECTED events (no longer get
608 lots of surplus events)</p>
609 <p>wxGTK: Applied patch for proper menu highlight colour detection in
610 wx.SystemSettings.</p>
611 <p>wxGTK: Commited scrollbar patch #1093339 which sends lineup, linedown
612 events based on intercepting the mouse down events.</p>
613 <p>wxGTK: Applied patch #1102789 which solved conflicts between wxWidgets
614 and 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
619 each text updated event, but rather query for the string value only
620 when GetString is called from an event handler.</p>
621 <p>Added wx.SL_INVERSE style which will cause wx.Slider to invert the min
622 and max ends of the slider.</p>
623 <p>Several patches applied, such as #1111174, #1110252 and others, that
624 make the generic wx.TreeCtrl (used on wxGTK and wxMac) be more
625 conistent with the wxMSW native wx.TreeCtrl.</p>
626 <dl class="docutils">
627 <dt>XRCed:</dt>
628 <dd><ul class="first last simple">
629 <li>Edit-&gt;Locate command (Ctrl-L) for quick selection of items.
630 Works with event-handling controls (buttons, text fields) but
631 not with labels/sizers.</li>
632 <li>Some improvements: relative paths for files supplied as command-
633 line argument work correctly, notebook panels are highlighted
634 better.</li>
635 </ul>
636 </dd>
637 </dl>
638 <p>wxMac: Fixed a long-standing issue where wxSlider controls with a
639 hardcoded size would misplace their labels behind the slider control.</p>
640 <p>wx.HtmlListBox fixed so calling RefreshLine(s) will cause the data for
641 that line to be refetched from the overridden methods in the derived
642 class.</p>
643 <p>The default DoGetBestSize now includes the difference (if any) between
644 the client size and total size of the window, (such as the size of
645 borders.) Code that sets the client size using the best size, or that
646 added extra space to sizers to compensate for this bug may need to be
647 changed.</p>
648 <p>Can suppress themed notebook pages with the wxNB_NOPAGETHEME style or
649 setting 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
652 eliminate weird refresh behaviour (delays between a window being
653 erased and repainted, giving a ghostly gradual-redraw effect). May be
654 a temporary 'fix' until properly fixed before 2.6.</p>
655 <p>wxMac: Toolbar is now more native looking with borderless toolbar
656 buttons.</p>
657 <p>wxMac: Switched wx.Bitmap to use newer Quartz object types and APIs
658 internally. 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
662 using Mouse Gestures in an application.</p>
663 <p>wxGTK2: ENTER and LEAVE mouse events are now sent for multi-line text
664 controls.</p>
665 <p>wxMSW: &quot;Alt&quot; key (VK_MENU) now results in WXK_ALT keyboard event, not
666 WXK_MENU</p>
667 <p>Added modules from Peter Yared and Morgan Hua that implement the wx
668 Doc/View framework in pure Python code. See wx.lib.docview for the
669 base implementation and wx.lib.pydocview for Python-specific
670 extensions. There are also a couple sample applications located in
671 samples/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
675 undeprecated at the request of Riaan Booysen, the Boa Constructor team
676 lead. Boa needs them to help keep track of what kind of item is being
677 managed by the sizer. They are now just simple compatibility aliases
678 for Add, and etc.</p>
679 <p>The old C++ version of the OGL lib is no longer built by default. Use
680 the 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
682 wx.lib.iewin version instead.</p>
683 <p>Fixed wx.BufferedPaintDC for scrolled windows to work whether the
684 buffer is covering only the client area or the full virtual area of
685 the scrolled window. By default it will assume that only the client
686 area is covered. This is different than the old behavior so to
687 indicate that the entire virtual area is covered simply add a
688 style=wx.BUFFER_VIRTUAL_AREA parameter.</p>
689 <p>wx.gizmos.TreeListCtrl: Add support for the EVT_TREE_ITEM_GETTOOLTIP
690 event.</p>
691 <p>Added Resize, SetRGBRect, Size, and GetOrFindMaskColour methods to
692 wx.Image.</p>
693 <p>Added wx.Rect.IsEmpty</p>
694 <dl class="docutils">
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>
705 <div class="section" id="id7">
706 <h1><a name="id7">2.5.3.1</a></h1>
707 <ul class="simple">
708 <li>9-Nov-2004</li>
709 </ul>
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
716 enabled (does an enable itself)</p>
717 <p>Added wx.lib.ogl.DrawnShape, and fixed various little bugs in the new
718 OGL.</p>
719 <p>Added support to XRC and XRCed for the 3-state checkbox flags and also
720 for wx.ToggleButton. Updated the generic window styles supported by
721 XRCed.</p>
722 <p>It is now possible to create &quot;stock&quot; buttons. Basically this means
723 that you only have to provide one of the stock IDs (and either an
724 empty label or a label that matches the stock label) when creating the
725 button and wxWidgets will choose the stock label to go with it
726 automatically. Additionally on the platforms that have a native
727 concept of a stock button (currently only GTK2) then the native stock
728 button will be used. For example, the following will result in a
729 button with &quot;Cancel&quot; as the label and if run on wxGTK2 then there will
730 also be an image of a red X:</p>
731 <pre class="literal-block">
732 b = wx.Button(parent, wx.ID_CANCEL)
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
738 I am no longer doing builds on Python 2.1 the newest distutils is no
739 longer needed. (There is still one small bug in Python 2.2 distutils
740 on win32, but it is easily worked around.) This sovles the problem of
741 incorrect builds on some systems where the system installed distutils
742 has been patched to behave slightly differently, for example SuSE on
743 x86_64 or Chandler's build.</p>
744 <p>Updated to SWIG 1.3.22 (plus my patch.) See wxPython/SWIG/README.txt
745 in the source tree if you need to use SWIG when building your own copy
746 of wxPython, or other extension modules that need to integrate with
747 the wxPython modules.</p>
748 <p>Added wx.Frame.RequestUserAttention which, if the platform suports it,
749 will do something (such as flash the task bar item) to suggest to the
750 user that they should look at that window.</p>
751 <p>&quot;Fixed&quot; wx.grid.Grid.SetDefaultEditor and SetDefaultRenderer by making
752 them 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
755 a Python datetime or date object. (These will only work with Python
756 2.3+) The methods are PySetDate, PyGetDate, PySetLowerDateLimit,
757 PySetUpperDateLimit, PySetDateRange, PyGetLowerDateLimit, and
758 PyGetUpperDateLimit. Also, CalendarEvent was extended with PySetDate
759 and PyGetDate methods.</p>
760 <p>wxMSW: SetBackgroundColour on a wx.Choice or a wx.ComboBox will now
761 also 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
766 the item to be shown should be searched for recursivly in subsizers,
767 and 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
772 1001271)</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
777 WS_VISIBLE; also refresh the control automatically (closes bug
778 1019440)</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
781 MSW app, i.e. tab into the activated, not necessarily the first radio
782 button.</p>
783 <p>Added limited support for wxEventLoop (you can't derive from a
784 wx.PyEventLoop version yet...) Updated and moved the sample showing
785 how 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
787 is always built by default. wxPython's build has also changed
788 accordingly and will build the xrc module as part of the core set of
789 modules built by default. If you were axplicitly using BUILD_XRC then
790 it will no longer be recognized as a build option, otherwise you
791 should notice no difference.</p>
792 <p>wxMac: Fixed radio toolbar buttons to correctly untoggle the others
793 when 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
796 app's icon on the Dock and also specifying a menu that should be
797 merged with the normal dock popup menu. See the MigrationGuide for
798 more details and a warning.</p>
799 <p>Added wx.TopLevelWindow.IsActive() which tells you if the frame or
800 dialog 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
802 size 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
807 holding down the mouse button.</p>
808 <p>wxGTK: Enable key based navigation through notebook tabs as in the
809 native control with Left and right keys. Support for vetoing.</p>
810 <p>FloatCanvas updates from Chris Barker</p>
811 <dl class="docutils">
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
817 arguments</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
823 PositionScreenToUser in PlotCanvas.</li>
824 <li>Added functions GetClosestPoints (all curves) and GetClosestPoint
825 (only closest curve) can be in either user coords or screen
826 coords.</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
834 creation</li>
835 <li>Converted masked package doc strings to reST format for better
836 epydoc support</li>
837 <li>lots of doc string improvements and function hiding to better
838 reflect package's public contents.</li>
839 </ul>
840 </dd>
841 </dl>
842 <p>Restructured the installer packages slightly to help facilitate having
843 multiple versions of wxPython installed at the same time. See the
844 Migrarion Guide for more information.</p>
845 <dl class="docutils">
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>
850 <li>wxPython/wx/lib/mixins/listctrl.py (several improvements to
851 TextEditMixin)</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
857 OSX build. Other platforms will raise an exception if you try to use
858 it.</p>
859 <p>wxPython on OSX can now be built in Unicode mode, can support multiple
860 version installs, and comes with an uninstaller script.</p>
861 </div>
862 <div class="section" id="id8">
863 <h1><a name="id8">2.5.2.8</a></h1>
864 <ul class="simple">
865 <li>27-Aug-2004</li>
866 </ul>
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
873 nicer with sizers when there is no minimal size.</li>
874 <li>Some tweaks in the demo and samples to correct layout, some
875 flicker 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
879 parameter.</li>
880 <li>Corrections for exceptions in the new ogl</li>
881 <li>Fixed XRCed to not use reparenting of windows to implement caching
882 of property panels, since Reparent on wxMac is not implemented.</li>
883 <li>Add support for wxTAB_TRAVERSAL to the XRC handler for
884 wxScrolledWindow.</li>
885 <li>Add support for all wxListBox styles to the XRC handler for
886 wxCheckListBox.</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>
894 <div class="section" id="id9">
895 <h1><a name="id9">2.5.2.7</a></h1>
896 <ul class="simple">
897 <li>14-Aug-2004</li>
898 </ul>
899 <p>wx.ADJUST_MINSIZE is now the default behaviour for window items in
900 sizers. This means that the item's GetMinSize and/or GetBestSize will
901 be called when calculating layout and the return value from that will
902 be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE
903 flag was added that will cause the sizer to use the old behaviour in
904 that it will <em>not</em> call the window's methods to determine the new best
905 size, instead the minsize that the window had when added to the sizer
906 (or the size the window was created with) will always be used. Please
907 see the Sizers section in the Migration Guide for more details.</p>
908 <p>Added new MaskedEditControl code from Will Sadkin. The modules are
909 now 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
911 have been reverted. The wx.DC methods are now compatible with the 2.4
912 implemetation. In addition a set of renamed methods have been added
913 that take wx.Point and/or wx.Size objects instead of individual
914 parameters.</p>
915 <p>Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
916 all 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
919 as their Insert* and Prepend* counterparts.</p>
920 <p>Added a generic StaticBitmap class in wx.lib.statbmp for the same
921 reasons that stattext was created, so it could be mouse sensitive on
922 all platforms like normal windows. Also updated stattext.py and
923 buttons.py to handle attribute (font &amp; colour) defaults and
924 inheritance the new way. If you have custom controls of your own you
925 should review stattxt.py or one of the others to see how it is to be
926 done.</p>
927 <p>wx.InitAllImageHandlers is now an empty function that does nothing but
928 exist for backwards compatibility. The C++ version is now called
929 automatically when wxPython is initialized. Since all the handlers
930 are included in the wxWidgets shared library anyway, this imposes only
931 a very small amount of overhead and removes several unneccessary
932 problems.</p>
933 <p>Replaced wx/lib/pubsub.py with a version that uses weak references to
934 track the subscribers, plus other fixes/additions. Thanks go to
935 Oliver Schoenborn and Robb Shecter.</p>
936 <p>wxGTK now uses gtk_init_check so wxPython can raise an exception if
937 there is no DISPLAY available or other initializaion problem.</p>
938 <p>wx.GetKeyState now has an implementation for wxGTK and is able to
939 detect 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
941 running on wxGTK to work around the fact that GTK requires the locale
942 to be set to the system settings but Python depends on LC_NUMERIC
943 remaining compatible with &quot;C&quot;.</p>
944 <p>Switched gizmos.TreeListCtrl to the newer version of the code from the
945 wxCode project.</p>
946 <p>OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
947 leaked out there...) The wx.ogl module has been deprecated in favor
948 of the new Python port of the OGL library located at wx.lib.ogl
949 contributed by Pierre Hjälm. This will hopefully greatly extend the
950 life of OGL within wxPython by making it more easily maintainable and
951 less prone to getting rusty as there seems to be less and less
952 interest in maintaining the C++ version. At this point there are just
953 a couple minor known compatibility differences, please see the
954 <a class="reference" href="MigrationGuide.html">MigrationGuide</a> file for details.</p>
955 <p>EVT_STC_POSCHANGED has been removed as it has been deprecated in
956 Scintilla for several releases now.</p>
957 <p>All the Window and GDI (pen, bitmap, etc.) class constructors and also
958 many toplevel functions and static methods will now check that a
959 wx.App object has already been created and will raise a
960 wx.PyNoAppError exception if not.</p>
961 <p>Added more default args as needed to allow most window types to be
962 constructed with only the parent window arg. In some cases other args
963 may be required for normal operation, but they can usually be set
964 after construction.</p>
965 <p>Removed the deprecated ErrorDialogs and PythonBitmaps modules. If you
966 were using these in your apps then please join wxPython-dev and assist
967 with a more modern reimplementation.</p>
968 <p>Added a new version (0.8.3) of FloatCanvas from Chris Barker. It's now
969 in a subpackage of wx.lib.</p>
970 <p>It is now possible to change the tab traversal order of controls on a
971 panel or dialog. For details see the new MoveAfterInTabOrder and
972 MoveBeforeInTabOrder methods of wx.Window.</p>
973 <p>Applied (and heavily modified) a patch from Eugene
974 &lt;<a class="reference" href="mailto:svip123&#64;fastmail.fm">svip123&#64;fastmail.fm</a>&gt; that allows the sample modules in the demo to be
975 edited and reloaded, all from within the demo. You can switch back
976 and forth between the default and your edited version, and any errors
977 ocurring upon the reload are reported on the Demo tab.</p>
978 <p>Added a menu item in the demo that will open a PyShell window that has
979 the app and demo frame preloaded in the namespace. This is another
980 good way to explore and play with the objects in the currently running
981 sample. For example, load the Button sample and then do the following
982 in the PyShell:</p>
983 <pre class="literal-block">
984 &gt;&gt;&gt; b = frame.demoPage.GetChildren()[0]
985 &gt;&gt;&gt; for x in range(0, 500, 10):
986 ... b.Move((x, 50))
987 ... app.Yield(True)
988 ... wx.MilliSleep(10)
989 </pre>
990 <p>wxGTK: Applied wxNO_BORDER patch (#1098374) for text control and combo
991 box.</p>
992 </div>
993 <div class="section" id="the-this-is-not-a-joke-release">
994 <h1><a name="the-this-is-not-a-joke-release">2.5.1.5 (the 'this is <em>not</em> a joke' release)</a></h1>
995 <ul class="simple">
996 <li>2-Apr-2004</li>
997 </ul>
998 <p>(See also the <a class="reference" href="MigrationGuide.html">MigrationGuide</a> file for details about some of the
999 big changes that have happened in this release and how you should
1000 adapt your code.)</p>
1001 <p>The wxWindows project and library is now known as wxWidgets. Please
1002 see <a class="reference" href="http://www.wxwindows.org/name.htm">http://www.wxwindows.org/name.htm</a> for more details. This won't
1003 really affect wxPython all that much, other than the fact that the
1004 wxwindows.org domain name will be changing to wxwidgets.org, so mail
1005 list, CVS, and etc. addresses will be changing. We're going to try
1006 and smooth the transition as much as possible, but I wanted you all to
1007 be aware of this change if you run into any issues.</p>
1008 <p>Many, many little fixes, changes and additions done as part of the move
1009 to wxWidgets 2.5 that I have forgotten about.</p>
1010 <p>Added wxMirrorDC.</p>
1011 <p>Added wxIconLocation</p>
1012 <p>Added Python wrappers and demos for the new wxVScrolledWindow,
1013 wxVListBox, and wxHtmlListBox classes.</p>
1014 <p>Added wrappers for wxBookCtrl and wxListbook. wxNotebook now derives
1015 from wxBookCtrl.</p>
1016 <p>Added Gordon Williams' PyPlot module to the library, available as the
1017 wx.lib.plot module.</p>
1018 <p>I made a small but important change in the code that aquires the
1019 Python Global Interpreter Lock to try and prevent deadlocks that can
1020 happen when there are nested attempts to aquire the GIL.</p>
1021 <p>The RPMs will now install menu items on Mandrake Linux in
1022 Applications/Development/Tools for PyCrust, XRCed, etc. The RPMs are
1023 also installing icons and <tt class="docutils literal"><span class="pre">*.desktop</span></tt> items in the generic KDE and
1024 GNOME locations, but I don't know yet if they are resulting in menu
1025 items on non-Mandrake systems. (It didn't automatically do it on my
1026 RH-9 build box but I didn't chase it very far...) If you have ideas
1027 for how to improve the .spec file to work better and/or on more
1028 distros please send me a patch.</p>
1029 <p>The RPMs are now built on a fairly generic RH-9 box, and I have tested
1030 installing them also on my main Mandrake 9.2 box.</p>
1031 <p>There are some big changes in the OS X disk image. The actual
1032 Installer package now <em>only</em> installs the wxMac dynlibs, wxPython
1033 extension modules and Python packages, and also the command-line tool
1034 scripts. The remaining items (demo, samples, and application bundles
1035 for the Demo, PyCrust and XRCed) are now top-level items in the disk
1036 image (.dmg file) that users can just drag and drop to wherever they
1037 want to put them.</p>
1038 <p>The wxWave class has been renamed to wxSound, and now has a slightly
1039 different API.</p>
1040 <p>Updated the AnalogClockWindow with many enhancements from E. A. Tacão.</p>
1041 <p>wxMac now has wx.ToggleButton!</p>
1042 <p>wx.stc.StyledTextCtrl has been updated to version 1.58 of Scintilla.</p>
1043 <p>To help with the wx.stc.StyledTextCtrl performance issues on wxMac
1044 I've added a SetUseAntiAliasing method (and GetUseAntiAliasing too)
1045 that will turn off the use of antialiased fonts in the wxSTC, allowing
1046 it to bypass the slow text measuring routines and use the fast and
1047 simple one instead. By default the setting is turned off (on wxMac
1048 only.) When run on OSX the Py* apps have a new item on the Options
1049 menu for controlling this setting if you would like to experiment with
1050 it.</p>
1051 <p>Updated wx.lib.calendar with many fixes and enhancements from Joerg
1052 &quot;Adi&quot; Sieker.</p>
1053 <p>Added wx.Display and wx.VideoMode.</p>
1054 <p>AppleEvents can be handled by overriding wx.App methods MacOpenFile,
1055 MacPrintFile, MacNewFile, and MacReopenApp.</p>
1056 <p>Added wx.PlatformInfo which is a tuple containing strings that
1057 describe the platform and build options of wxPython. See the
1058 MigrationGuide for more details.</p>
1059 <p>Created a new extension module &quot;activex&quot; from Lindsay Mathieson's
1060 newest <a class="reference" href="http://members.optusnet.com.au/~blackpaw1/wxactivex.html">wxActiveX</a> class. (The existing iewin module used an older
1061 version of this code, but only exposed the wxIEHtmlWin class.) This
1062 new module will (in theory ;-) ) allow you to host arbitrary ActiveX
1063 controls in a wx.Window, <strong>without</strong> requiring the use of the win32com
1064 and other PyWin32 modules! This should eliminate the cronic problems
1065 that have resulted from minor mismatches in how PyWin32 handles the
1066 GIL and tstate when making callbacks, etc. The older iewin module
1067 will be left in this release as the new stuff is not fully backwards
1068 compatible, but you should migrate your code to the new IEHtmlWindow
1069 in wx.lib.iewin, so the old one can be eventually removed.
1070 Additionally, I've always considered that the wx.lib.activexwrapper
1071 module is an ugly hack that I only included in the lib because I
1072 couldn't figure out anything better. Well now we have something that,
1073 if it isn't already, has the potential to be better. So consider
1074 migrating away from using activexwrapper as well. Please see the
1075 MigrationGuide for more details on using the new module.</p>
1076 <p>Floats are allowed again as function parameters where ints are expected.</p>
1077 </div>
1078 <div class="section" id="id11">
1079 <h1><a name="id11">2.4.2.4</a></h1>
1080 <ul class="simple">
1081 <li>1-Oct-2003</li>
1082 </ul>
1083 <p>Use wxSTC in the demo for displaying the soucre code of the samples.</p>
1084 <p>Lots of bug fixes and such from the wxWindows folks.</p>
1085 <p>Added wxPython.lib.newevent from Miki Tebeka. Its usage is
1086 demonstrated in the Threads sample in the demo.</p>
1087 <p>Updates to wxMaskedEditCtrl.</p>
1088 <p>Added wxMaskedNumCtrl.</p>
1089 <p>Added Chris Barker's FloatCanvas.</p>
1090 </div>
1091 <div class="section" id="id12">
1092 <h1><a name="id12">2.4.1.2</a></h1>
1093 <ul class="simple">
1094 <li>19-Jun-2003</li>
1095 </ul>
1096 <p>Added wxScrolledPanel from Will Sadkin</p>
1097 <p>Added SetShape method to top level windows (e.g. wxFrame.)</p>
1098 <p>Changed wxSWIG to not generate Python code using apply, (since it will
1099 be deprecated in the future) wxSWIG will use <tt class="docutils literal"><span class="pre">spam(*args,</span> <span class="pre">**kw)</span></tt> syntax
1100 instead. Also changed the generated __repr__ methods to be a bit more
1101 informative.</p>
1102 <p>Made the version number information more robust and uh, informative.
1103 Also added asserts to check that the major.minor versions of wxPython
1104 and wxWindows match.</p>
1105 <p>Added the new wx &quot;renamer&quot; package that will dynamically import from
1106 the wxPython package and rename wxFooBar --&gt; FooBar. That means that
1107 people can do imports without <tt class="docutils literal"><span class="pre">&quot;import</span> <span class="pre">*&quot;</span></tt> and can use names like
1108 wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition
1109 to the new namespace.</p>
1110 <p>Updated Scintilla to 1.52. I also changed it to use wxListCtrl
1111 instead of wxListBox for the AutoComplete window, added the ability to
1112 use custom bitmaps in the margin and in the AutoComplete windows, and
1113 worked out how to do proper clipping of child windows on wxGTK.</p>
1114 <p>Patrick O'Brien's PyCrust package has been renamed to Py and now
1115 includes several new tools. As part of the change the location of the
1116 pacakge has changed as well, it is now accessible as &quot;from wxPython
1117 import py&quot; (or &quot;from wx import py&quot; using the new namespace.) There
1118 are still some transition modules in the wxPython.lib.PyCrust package
1119 that will issue a warning and then import what is needed from the new
1120 package. These will be removed in a future release.</p>
1121 <p>Added __nonzero__ method to wxTreeItemId, wxBitmap, wxImage, wxFont,
1122 and most other classes that have an Ok or IsOK method. This allows
1123 code like &quot;if obj: ...&quot; to be the same as &quot;if obj.IsOk(): ...&quot;</p>
1124 <p>Toolbars on wxMac can now have controls on them.</p>
1125 <p>Added wxPython.lib.analogclock module based on samples that were
1126 passed back and forth on wxPython-users a while back.</p>
1127 <p>Added masked edit controls (wxPython.lib.maskededit) by Jeff Childers
1128 and Will Sadkin. Updated wxTimeCtrl to use MaskedEdit.</p>
1129 <p>When the __class__ of a dead object is replaced with _wxPyDeadObject
1130 the __del__ of the original class is now called first.</p>
1131 <p>Added wxTreeListCtrl. (Looks like a wxTreeCtrl embedded in a
1132 wxListCtrl, but actually is just giving multiple columns to a
1133 wxTreeCtrl.)</p>
1134 <p>Added wxFutureCall, a subclass of wxTimer that makes it easy to delay
1135 a call to any Python callable object.</p>
1136 <p>Added wxPy versions of wxPrintPreview, wxPreviewFrame, and
1137 wxPreviewControlBar so they can be derived from in Python and be able
1138 to override the C++ virtual methods.</p>
1139 <p>Simplified how the wxSizer methods are wrapped, changed the name of
1140 the &quot;option&quot; parameter to &quot;proportion&quot; to match the docs (&quot;option&quot; is
1141 still accepted for compatibility, but this will go away in a future
1142 release,) SetItemMinSize can now take a wxSize (or 2-tuple) parameter,
1143 and Spacers can be specified with a wxSize (or 2-tuple) parameter</p>
1144 <p>Added wxCursorFromBits.</p>
1145 </div>
1146 <div class="section" id="id13">
1147 <h1><a name="id13">2.4.0.7</a></h1>
1148 <ul class="simple">
1149 <li>24-Mar-2003</li>
1150 </ul>
1151 <p>Gave up on generating a warning upon the use of the old true/false or
1152 TRUE/FALSE values.</p>
1153 <p>Fixed wxGenericTreeCtrl (used on wxGTK and wxMac for wxTreeCtrl) so
1154 that it can successfully handle lots of nodes instead of overflowing
1155 when the virtual height of the widget overflowed a 16-bit value.</p>
1156 <p>Fixed the typemap that converts strings to wxColours to also accept
1157 unicode.</p>
1158 <p>Fixed problem where the wrong class name could sometimes be used for
1159 OOR.</p>
1160 <p>Fixed an interpreter lock problem in the __eq__ and __ne__ methods in
1161 wxSize and etc.</p>
1162 <p>Updated PyCrust to version 0.9</p>
1163 <p>Instead of always logging C++ assertions, added wxPYAPP_ASSERT_LOG
1164 flag to turn it on. In most cases turning it into an exception (the
1165 default behavior) is enough. See below in the 2.3.4.1 notes for more
1166 details.</p>
1167 </div>
1168 <div class="section" id="a-k-a-the-i-m-so-stupid-release">
1169 <h1><a name="a-k-a-the-i-m-so-stupid-release">2.4.0.6 (a.k.a. the I'm so stupid release)</a></h1>
1170 <ul class="simple">
1171 <li>11-Mar-2003</li>
1172 </ul>
1173 <p>The new deprecation class for the old true/false symbols can now be
1174 returned from OnInit. And I promise to be sure I am testing what I
1175 think I am testing in the future...</p>
1176 </div>
1177 <div class="section" id="a-k-a-the-blame-it-on-kevin-release">
1178 <h1><a name="a-k-a-the-blame-it-on-kevin-release">2.4.0.5 (a.k.a. the blame it on Kevin release)</a></h1>
1179 <ul class="simple">
1180 <li>7-Mar-2003</li>
1181 </ul>
1182 <p>A few little but annoying bug fixes.</p>
1183 <p>Updated pycolourchooser.</p>
1184 <p>Updated to 0.9b of PyCrust.</p>
1185 </div>
1186 <div class="section" id="id14">
1187 <h1><a name="id14">2.4.0.4</a></h1>
1188 <ul class="simple">
1189 <li>7-Mar-2003</li>
1190 </ul>
1191 <p>Added missing wxRect methods</p>
1192 <p>Add OOR support for wxApp objects too.</p>
1193 <p>Added wxCursorFromImage, which works on wxMSW and wxGTK so far.</p>
1194 <p>All platforms now send EVT_DESTROY_WINDOW. Be warned that at the time
1195 the event is sent the window is in the process of being deconstructed,
1196 and so calling some (most?) methods of the window itself may cause
1197 problems.</p>
1198 <p>Fixed SF Bug #689481, a method in the OGL wrappers was using the wrong
1199 return type.</p>
1200 <p>Fixed SF Bug #689958, an endless loop in printout.py.</p>
1201 <p>Added EVT_WINDOW_CREATE_ID and EVT_WINDOW_DESTROY_ID so these events
1202 can be associated with a specific window ID and more easily caught by
1203 the parent window.</p>
1204 <p>Fixed copy-paste error in wxListCtrl.GetFirstSelected.</p>
1205 <p>Added missing Init method (and an overloading wrapper) to wxLocale
1206 wrapper.</p>
1207 <p>Added a wxBitmap.SetMaskColour convenience method.</p>
1208 <p>Changed how the dynamic event tables (used for all Python wx classes,
1209 C++ wx classes typically use static event tables) are searched such
1210 that they behave from a Python perspective more like the static tables
1211 in C++. Namely that if there are identical event bindings in a base
1212 Python class and a derived Python class that the one in the derived
1213 class will be found first and that if Skip is called that the one in
1214 the base class will still be found instead of skipping directly to the
1215 static stable in the C++ class.</p>
1216 <p>Switched to using True/False in the wxPython lib and demo instead of
1217 true/false or TRUE/FALSE to prepare for the new boolean type and
1218 constants being added to Python. Added code to wx.py to test for the
1219 existence of the new constants and to create suitable values if not
1220 present.</p>
1221 <p>Added some static wxApp functions that help with integration with the
1222 Mac UI. They are no-ops on other platforms so it doesn't hurt to
1223 always call them. The functions are:</p>
1224 <pre class="literal-block">
1225 wxApp_GetMacDefaultEncodingIsPC
1226 wxApp_GetMacSupportPCMenuShortcuts
1227 wxApp_GetMacAboutMenuItemId
1228 wxApp_GetMacPreferencesMenuItemId
1229 wxApp_GetMacExitMenuItemId
1230 wxApp_GetMacHelpMenuTitleName
1231 wxApp_SetMacDefaultEncodingIsPC
1232 wxApp_SetMacSupportPCMenuShortcuts
1233 wxApp_SetMacAboutMenuItemId
1234 wxApp_SetMacPreferencesMenuItemId
1235 wxApp_SetMacExitMenuItemId
1236 wxApp_SetMacHelpMenuTitleName
1237 </pre>
1238 <p>Refactored, enhanced and added capabilities for the DrawXXXList
1239 functions, inspired by code from Chris Barker.</p>
1240 <p>The wxWindows .mo language catalog files are now installed in a
1241 subdirectory of the wxPython package dir on MSW since that platform
1242 doesn't have a standard place for them.</p>
1243 <p>Added missing deselect methods for wxGrid.</p>
1244 <p>Fixed typemaps for wxGridCellCoordsArray.</p>
1245 <p>Updated to the 0.9a version of PyCrust</p>
1246 </div>
1247 <div class="section" id="id15">
1248 <h1><a name="id15">2.4.0.2</a></h1>
1249 <ul class="simple">
1250 <li>23-Jan-2003</li>
1251 </ul>
1252 <p>Several bug fixes.</p>
1253 <p>Added wxIntCtrl from Will Sadkin.</p>
1254 <p>Added wxPyColourChooser by Michael Gilfix.</p>
1255 </div>
1256 <div class="section" id="id16">
1257 <h1><a name="id16">2.4.0.1</a></h1>
1258 <ul class="simple">
1259 <li>10-Jan-2003</li>
1260 </ul>
1261 <p>No major new features since 2.3.4.2, mostly bug fixes and minor
1262 enhancements.</p>
1263 <p>Added function wrappers for the common dialogs from Kevin Altis. See
1264 wxPython/lib/dialogs.py for more details.</p>
1265 </div>
1266 <div class="section" id="id17">
1267 <h1><a name="id17">2.3.4.2</a></h1>
1268 <ul class="simple">
1269 <li>21-Dec-2002</li>
1270 </ul>
1271 <p>Various bug fixes.</p>
1272 </div>
1273 <div class="section" id="id18">
1274 <h1><a name="id18">2.3.4.1</a></h1>
1275 <ul class="simple">
1276 <li>18-Dec-2002</li>
1277 </ul>
1278 <p>Updated XRCed and wxTimeCtrl contribs.</p>
1279 <p>Show a couple new wxGrid features in the demo.</p>
1280 <p>Several bug fixes in wxWindows.</p>
1281 <p>Added wxHtmlFilter.</p>
1282 <p>wxASSERT and related C++ runtime diagnostics are now converted to
1283 Python exceptions. When an assert happens a wxPyAssertionError
1284 (which derives from AssertionError) exception is created and when
1285 control returns back to the Python code that invoked the C++ API it
1286 will be raised. The same exception restrictions are in place as
1287 before, namely that exceptions can't cross from one Python layer
1288 through C++ to another Python layer. That simply means that if you
1289 want to catch wxPyAssertionError or any other exception that you need
1290 to do it before control returns to C++ at the end of your event
1291 handler or callback code. There is some test code in demo/wxButton.py
1292 you can use to play with this new feature.</p>
1293 <p>Added some methods to wxApp (SetAssertMode and GetAssertMode) that let
1294 you control how C++ assertions are processed. Valid modes are:
1295 wxPYAPP_ASSERT_SUPPRESS, wxPYAPP_ASSERT_EXCEPTION, and
1296 wxPYAPP_ASSERT_DIALOG. Using _SUPPRESS will give you behavior like
1297 the old &quot;final&quot; builds and the assert will be ignored, _EXCEPTION is
1298 the new default described above, and _DIALOG is like the default in
1299 2.3.3.1 and prior &quot;hybrid&quot; builds. You can also combine _EXCEPTION
1300 and _DIALOG if you wish, although I don't know why you would.</p>
1301 <p>You can now overload OnInitGui, OnExit and OnAssert in your classes
1302 derived from wxApp.</p>
1303 <p>Added GetSelectedCells, GetSelectionBlockTopLeft,
1304 GetSelectionBlockBottomRight, GetSelectedRows, GetSelectedCols nethods
1305 to wxGrid.</p>
1306 <p>Added Python == and != operators for some basic classes</p>
1307 <p>Fixed the Python wrappers for wxInputStream so they no longer block
1308 when reading from a wxProcess on wxGTK. They now work more or less as
1309 they did before 2.3.3.1 but the dual meaning of eof() has been
1310 removed. There is now a CanRead() method that lets you know if there
1311 is data waiting to be read from the pipe.</p>
1312 <p>Fixed method name clash in wxIEHtmlWin, renamed Refresh to RefreshPage.</p>
1313 <p>Added Throbber from Cliff Wells to the library and the demo.</p>
1314 <p>Windows installer prompts to uninstall old version first.</p>
1315 <p>Added wxPython.lib.evtmgr by Robb Shecter, which is an easier, more
1316 &quot;Pythonic&quot; and more OO method of registering handlers for wxWindows
1317 events using the Publish/Subscribe pattern.</p>
1318 <p>Added wxPython.lib.popupctl by Gerrit van Dyk which is a combobox-like
1319 gizmo for poping up arbitrary controls. It is currently using
1320 wxDialog because of some issues with wxPopupWindow...</p>
1321 <p>Added wxPython.lib.gridmovers by Gerrit van Dyk which facilitates the
1322 dragging of columns and/or rows in a wxGrid.</p>
1323 <p>Added wxPython.lib.multisash by Gerrit van Dyk which is a nice
1324 implementation of allowing the user to split a window any number of
1325 times either horizontally or vertically, and to close the split off
1326 windows when desired.</p>
1327 <p>Added helpviewer tool that displays HTML books similarly to how MS
1328 HTMLHelp viewer does. Changed how the wxPythonDocs tarball is built
1329 and added a script to launch the doc viewer.</p>
1330 </div>
1331 <div class="section" id="id19">
1332 <h1><a name="id19">2.3.3.1</a></h1>
1333 <ul class="simple">
1334 <li>19-Sep-2002</li>
1335 </ul>
1336 <p>Added wxSplashScreen.</p>
1337 <p>Added wxGenericDirCtrl.</p>
1338 <p>Added wxMultiChoiceDialog.</p>
1339 <p>The calltip window and autocomplete window in wxSTC will now use a
1340 wxPopupWindow if available on the platform (and functioning correctly)
1341 so they can extend beyond the client area of the STC if needed.</p>
1342 <p>Finished wrapping and providing typemaps for wxInputStream and also
1343 added the stream ctor and other methods for wxImage so images can now
1344 be loaded from any Python &quot;file-like&quot; object.</p>
1345 <p>Changed the img2py tool to use PNG instead of XPM for embedding image
1346 data in Python source code, and the generated code now uses streams to
1347 convert the image data to wxImage, wxBitmap, or wxIcon.</p>
1348 <p>Added the wxPython.lib.rcsizer module which contains RowColSizer.
1349 This sizer is based on code from Niki Spahiev and lets you specify a
1350 row and column for each item, as well as optional column or row
1351 spanning. Cells with no item assigned to it are just left blank.
1352 Stretchable rows or columns are specified and work the same as in
1353 wxFlexGridSizer.</p>
1354 <p>Updated XRCed from Roman Rolinsky</p>
1355 <p>Added wxBufferedDC.</p>
1356 <p>Upgraded wxSTC from Scintilla 1.40 to Scintilla 1.45, and then again
1357 to version 1.47, and one more time to 1.48! &lt;wink&gt;</p>
1358 <dl class="docutils">
1359 <dt>UNICODE!</dt>
1360 <dd><p class="first">wxWindows/wxPython can be compiled with unicode support enabled or
1361 disabled. Previous to wxPython 2.3.3 non-unicode mode was always
1362 used. Starting with 2.3.3 either mode is supported, but only if
1363 it is also available in wxWindows on the platform. Currently
1364 wxWindows only supports unicode on MS Windows platforms, but with
1365 the recent release of GTK+ 2.0 it is only a matter of time until
1366 it can be done on wxGTK (Linux and other unixes) as well.</p>
1367 <p>Unicode works best on platforms in the NT branch of the Windows
1368 family tree (NT, win2k, XP) but it is now also possible to use the
1369 same unicode binaries on win95/98/ME platforms as well! This is
1370 done by using a special library and DLL with the application
1371 called MSLU, (Microsoft Layer for Unicode). It simply gets out of
1372 the way if the app is run on an NT box, otherwise if run on a
1373 win9x box it loads a special DLL that provides the unicode
1374 versions of the windows API. So far I have not been able to get
1375 this to work perfectly on win9x. Most things work fine but
1376 wxTaskBarIcon for example will cause a crash if used with the
1377 unicode build on win95.</p>
1378 <p class="last">So how do you use it? It's very simple. When unicode is enabled,
1379 then all functions and methods in wxPython that return a wxString
1380 from the C++ function will return a Python unicode object, and
1381 parameters to C++ functions/methods that expect a wxString can
1382 accept either a Python string or unicode object. If a string
1383 object is passed then it will be decoded into unicode using the
1384 converter pointed to by wxConvCurrent, which will use the default
1385 system encoding. If you need to use a string in some other
1386 encoding then you should convert it to unicode using the Python
1387 codecs first and then pass the unicode string to the wxPython
1388 method.</p>
1389 </dd>
1390 </dl>
1391 <p>Added wxListCtrlAutoWidthMixin from Erik Westra.</p>
1392 <p>Added wxIconBundle and wxTopLevelWindow.SetIcons.</p>
1393 <p>Added wxLocale and wxEncodingConverter.</p>
1394 <p>A little black magic... When the C++ object (for a window or
1395 whatever) is deleted there is no way to force the Python shadow object
1396 to also be destroyed and clean up all references to it. This leads to
1397 crashes if the shadow object tries to call a method with the old C++
1398 pointer. The black magic I've done is to replace the __class__ in the
1399 Python instance object with a class that raises an exception whenever
1400 a method call (or other attribute access) is attempted. This works
1401 for any class that is OOR aware.</p>
1402 <p>Added OOR support for wxGridCellRenderer, wxGridCellEditor,
1403 wxGridCellAttr, wxGridCellAttrProvider, wxGridTableBase and their
1404 derived classes.</p>
1405 <p>Added wxImage.GetDataBuffer which returns an in-place edit buffer of
1406 the image data. (Patch #546009)</p>
1407 <p>Added a sample that shows how to embed wxPython in a wxWindows C++
1408 application.</p>
1409 <p>Added wxPyWindow, wxPyPanel and wxPyControl which are just like their
1410 wx counterparts except they allow some of the more common C++ virtual
1411 methods to be overridden in Python derived classes. The methods
1412 supported are:</p>
1413 <blockquote>
1414 <p>DoMoveWindow
1415 DoSetSize
1416 DoSetClientSize
1417 DoSetVirtualSize
1418 DoGetSize
1419 DoGetClientSize
1420 DoGetPosition
1421 DoGetVirtualSize
1422 DoGetBestSize
1423 InitDialog
1424 TransferDataFromWindow
1425 TransferDataToWindow
1426 Validate
1427 AcceptsFocus
1428 AcceptsFocusFromKeyboard
1429 GetMaxSize
1430 AddChild
1431 RemoveChild</p>
1432 <p>If there are other methods that you think should be supported
1433 please let me know.</p>
1434 </blockquote>
1435 <p>Changed wxGenButton to derive from wxPyControl and overload
1436 DoGetBestSize and AcceptsFocus.</p>
1437 <p>Added wxArtProvider.</p>
1438 <p>Added wxCallAfter which is a helper function that registers a function
1439 (or any callable Python object) to be called once the next time there
1440 are no pending events. This is useful for when you need to do
1441 something but it can't be done during the current event handler. The
1442 implementation is very simple, see wxPython/wx.py.</p>
1443 <p>Fixed a boatload of reference leaks.</p>
1444 <p>Added a demo of using a sizer in a wxScrolledWindow, in effect
1445 creating a ScrolledPanel.</p>
1446 <p>Added a sample to the demo that shows how to use radio menu items, and
1447 other menu stuff.</p>
1448 <p>Added wxIEHtmlWin. This is essentially the same as using IE with the
1449 ActiveXWrapper already in the library, but it is implemented all in
1450 C++ and therefore does not need any of the modules from win32all and
1451 so it is less fragile in the face of changes.</p>
1452 <p>Fixed the ActiveXWrapper problem. Looks like when the win32com
1453 modules make a &quot;callback&quot; that they (incorrectly, IMHO) allocate a
1454 transient thread state structure. Since wxPython is now saving
1455 tstates for it's own callbacks it ended up using garbage after
1456 win32com got rid of the temporary tstate...</p>
1457 <p>Added a generic static text control to wxPython.lib.stattext. This is
1458 so things like Boa and PythonCard can have a static text that can
1459 respond to mouse events and etc.</p>
1460 <p>Changed the wxDateTime.Parse* methods to return an int that will be -1
1461 on failure, and the index where parsing stopped otherwise.</p>
1462 <p>Moved tools to be a Python package in wxPython.tools, added scripts to
1463 import and launch each tool. This will let you import and use the
1464 tools in your own scripts or apps as needed. On Linux and OS X the
1465 tool scripts are installed to {prefix}/bin so you should be able to
1466 easily launch them from the command line. For example, PyCrust can be
1467 started with just the &quot;pycrust&quot; command.</p>
1468 <p>Added a sample to the demo that catches various key events and
1469 displays the details of the event.</p>
1470 <p>Added wxWizard, wxWizardPage, wxWizardPageSimple and wxPyWizardPage.</p>
1471 <p>Added wxXmlResourceHandler which allows you to create custom handlers
1472 for nonstandard class types in XRC resources. See the demo for an
1473 example.</p>
1474 <p>Added wxPython.lib.mixins.rubberband module from Robb Shecter.</p>
1475 <p>Added wxTimeCtrl from Will Sadkin.</p>
1476 </div>
1477 <div class="section" id="id20">
1478 <h1><a name="id20">2.3.2.1</a></h1>
1479 <ul class="simple">
1480 <li>20-Dec-2001</li>
1481 </ul>
1482 <p>Changed (again) how the Python global interpreter lock is handled as
1483 well as the Python thread state. This time it works on SMP machines
1484 without barfing and is also still compatible with Python debuggers.</p>
1485 <p>Added some patches from library contributors.</p>
1486 </div>
1487 <div class="section" id="id21">
1488 <h1><a name="id21">2.3.2</a></h1>
1489 <ul class="simple">
1490 <li>11-Dec-2001</li>
1491 </ul>
1492 <p>Added EVT_HELP, EVT_HELP_RANGE, EVT_DETAILED_HELP,
1493 EVT_DETAILED_HELP_RANGE, EVT_CONTEXT_MENU, wxHelpEvent,
1494 wxContextMenuEvent, wxContextHelp, wxContextHelpButton, wxTipWindow,
1495 and a demo to show them in action.</p>
1496 <p>Deprecated PyShell and PyShellWindow, added a snapshot of PyCrust (see
1497 <a class="reference" href="http://sourceforge.net/projects/pycrust/">http://sourceforge.net/projects/pycrust/</a>. )</p>
1498 <p>Added the new virtual list capabilities to wxListCtrl.</p>
1499 <p>Added a wxSTC style editor from Riaan Booysen to the sample apps.</p>
1500 <p>Added XRCed to the wxPython Tools directory, contributed by Roman
1501 Rolinsky.</p>
1502 <p>Added a new &quot;constructor&quot; to most of the window classes that calls the
1503 default C++ constructor, (the one with no parameters) and also added the
1504 corresponding Create(...) method. This allows you to do a 2-step
1505 creation of windows which is sometimes required for doing things such
1506 as setting extended style flags before the window is created, or for
1507 passing the object to the XRC resource system to be created from the
1508 resource. The name of the new &quot;constructor&quot; is the original name of
1509 the class with a &quot;Pre&quot; in it. For example, wxPreWindow, wxPreFrame,
1510 etc.</p>
1511 <p>Updated to version 1.40 of Scintilla and updated wxStyledTextCtrl
1512 accordingly. While doing this update I dropped the wxLB_SORT style
1513 from the wxListBox created for the AutoComplete functionality. This
1514 means that you will have to sort the keyword lists yourself, but you
1515 are free to do case sensitive or case insensitive sorts and set the
1516 wxSTC flag accordingly.</p>
1517 <p>Updated wxColumnSorterMixin to also be able to place sort icons on the
1518 column headers, and updated the wxListCtrl demo to show it off by
1519 using wxColumnSorterMixin.</p>
1520 <p>Added wxGenBitmapTextButton, TablePrint, etc. contribs from Lorne White.</p>
1521 <p>Added wxNativeFontInfo and wxFontMapper.</p>
1522 <p>Added pySketch to the samples.</p>
1523 <p>Significantly changed how the Python interpreter lock and thread state
1524 are managed, which should fix the problem of running on a
1525 multi-processor machine.</p>
1526 <p>Added wxPyLog so log targets can be created in Python to handle log
1527 messages however is wished. See demo/Main.py for an example.</p>
1528 <p>Added wxFindReplaceDialog.</p>
1529 <p>The second phase of OOR is implemented for wxEvtHandler, wxSizer,
1530 wxShape and derived classes. This means that functions and methods
1531 that return an object derived from wxEvtHandler that was originally
1532 created in Python, will return the original Python object (if it still
1533 exists) instead of letting SWIG wrap a new shadow object around the
1534 original C++ pointer.</p>
1535 <p>Added some optimization methods to wxDC: GetBoundingBox, DrawLineList,
1536 DrawPointList.</p>
1537 <p>Added a set of sophisticated Error Dialogs from Chris Fama.</p>
1538 <p>Added wxRightTextCtrl from Josu Oyanguren to wxPython.lib for aligning
1539 text in a wxTextCtrl to the right side.</p>
1540 <p>Added wxURLDataObject and an example showing drag and drop of URLs to
1541 and from web browsers. It's still not 100% bullet-proof for all types
1542 of browsers, but it works for the majority of cases with the popular
1543 browsers on Windows. On wxGTK it seems that only Netscape 4.x works,
1544 if anybody has any suggestions about this please bring it up on the
1545 wx-dev list.</p>
1546 <p>Added wxStopWatch.</p>
1547 <p>Added wxMimeTypesManager and wxFileType.</p>
1548 <p>Passing None for the handler parameter to one of the EVT_** functions
1549 will now Disconnect the event.</p>
1550 <p>Added wxPopupWindow and wxPopupTransientWindow.</p>
1551 <p>Added wxFileHistory.</p>
1552 <p>Added wxDynamicSashWindow, which allows you to endlessly split windows
1553 by dragging a little tab next to the scrollbars. Added a demo to show
1554 this and also the ability of multiple wxStyledTextCtrls to share the
1555 same document.</p>
1556 <p>Added wxEditableListBox gizmo.</p>
1557 <p>Updated wxEditor with lots of enhancements from Steve Howell and Adam
1558 Feuer.</p>
1559 <p>Added the &quot;SplitTree gizmos&quot; which are a collection of classes that
1560 were designed to operate together and provide a tree control with
1561 additional columns for each item. The classes are
1562 wxRemotelyScrolledTreeCtrl, wxTreeCompanionWindow,
1563 wxThinSplitterWindow, and wxSplitterScrolledWindow, some of which may
1564 also be useful by themselves.</p>
1565 <p>Added wxDllWidget from Vaclav Slavik which allows wx widgets derived
1566 from wxWindow to be loaded from a C++ .dll (or .so) and be used in a
1567 wxPython program, without the widget having to be SWIGged first. The
1568 visible API of the widget is limited to wxWindow methods plus a
1569 SendCommand method, but it is still quite powerful. See
1570 wxPython/contrib/dllwidget and wxPython/demo/dllwidget for more
1571 details.</p>
1572 </div>
1573 <div class="section" id="id22">
1574 <h1><a name="id22">2.3.1</a></h1>
1575 <ul class="simple">
1576 <li>10-Jul-2001</li>
1577 </ul>
1578 <p>Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
1579 code can get access to the edit control when it is created, (to push
1580 on a custom event handler for example.)</p>
1581 <p>Added wxTextAttr class and SetStyle, SetDefaultStyle and
1582 GetDefaultStyle methods to wxTextCtrl.</p>
1583 <p>Added ability to use xml resource files. Still need to add ability to
1584 subclass wxXmlResourceHandler, etc...</p>
1585 <p>Added wxGridAutoEditMixin to the mixins library package.</p>
1586 <p>Made ColourSelect be derived from wxButton.</p>
1587 <p>Fixed img2py to work correctly with Python 2.1.</p>
1588 <p>Added enhanced wxVTKRenderWindow by Prabhu Ramachandran</p>
1589 </div>
1590 <div class="section" id="id23">
1591 <h1><a name="id23">2.3.0</a></h1>
1592 <ul class="simple">
1593 <li>22-May-2001</li>
1594 </ul>
1595 <p>Removed initial startup dependency on the OpenGL DLLs so only the
1596 glcanvasc.pyd depends on them, (on wxMSW.)</p>
1597 <p>Changed wxFont, wxPen, wxBrush to not implicitly use the
1598 wxThe[Font|Pen|Brush]List objects behind the scenes, but to use normal
1599 ctor and dtors.</p>
1600 <p>Exposed the wxThe[Font|Pen|Brush]List to wxPython.</p>
1601 <p>Also added wxTheColourDatabase and added a library module (in the
1602 wxPython.lib.colourdb module) to load LOTS more colour names into the
1603 colour database.</p>
1604 <p>Added wxWakeUpMainThread, wxMutexGuiEnter, wxMutexGuiLeave,
1605 wxMutexGuiLocker and wxThread_IsMain to assist with dealing with GUI
1606 access from non-GUI threads.</p>
1607 <p>wxPyOnDemandOutputWindow is now (more) thread safe if non-GUI threads
1608 use print, sys.stdout.write, etc.</p>
1609 <p>Added CreateTextSizer and CreateButtonSizer to wxDialog</p>
1610 <p>Added wxPython/lib/infoframe.py from Chris Fama. It contains a class
1611 that can be used in place of wxPyOnDemandOutputWindow.</p>
1612 <p>Added colourselect.py, imagebrowser.py and an updated calendar.py to
1613 wxPython/lib from Lorne White.</p>
1614 <p>Added patch to wxPoint_LIST_helper from Tim Hochberg that should make
1615 it gobs faster in certain situations.</p>
1616 <p>Added tools that will take an image file in a wx supported format and
1617 convert it to data embedded in a Python source file. The image is
1618 converted to XPM format which is essentially a list of strings
1619 containing info about each pixel. The image's transparency mask is
1620 included, if there is one, or a mask can be added if a mask colour is
1621 specified on the command line. It is then pickled and optionally
1622 compressed and written to a Python source file along with functions to
1623 convert it to either a wxBitmap or a wxImage. See
1624 wxPython/demo/images.py for examples, and wxPython/Tools/img2py.py for
1625 the implementation.</p>
1626 <p>Fixed wxStyledTextCtrl to be much faster on wxGTK. There was some
1627 experimental code that got left in place that ended up causing way too
1628 many refreshes.</p>
1629 <p>A couple more hacks in my_distutils.py so wxPython can be built with
1630 the distutils that comes with Python 2.1.</p>
1631 <p>Added a ton of missing methods for wxPrintData.</p>
1632 <p>Switched to InnoSetup for MSW distributions.</p>
1633 <p>Added wxToggleButton.</p>
1634 <p>Fixed bug that prevented wxTreeCtrl.OnCompareItems from being called.</p>
1635 <dl class="docutils">
1636 <dt>Added some methods to wxGrid:</dt>
1637 <dd>GetCellHighlightPenWidth
1638 GetCellHighlightROPenWidth
1639 SetCellHighlightPenWidth
1640 SetCellHighlightROPenWidth
1641 GetGridWindow
1642 GetGridRowLabelWindow
1643 GetGridColLabelWindow
1644 GetGridCornerLabelWindow</dd>
1645 </dl>
1646 <p>Added wxGetClientDisplayRect which on wxMSW returns a wxRect
1647 representing the area on screen not occupied by the taskbar and such.
1648 On other platforms it is equivallent to wxGetDisplaySize.</p>
1649 <dl class="docutils">
1650 <dt>OOR:</dt>
1651 <dd><p class="first">Implemented the first phase of OOR (Original Object Return). See
1652 the text in the demo for more details of what this means, but in a
1653 nutshell methods such as wxWindow.GetParent or FindWindowById will
1654 now return a shadow object of the proper type if it can. By
1655 &quot;proper type&quot; I mean that if the wxWindow pointer returned from
1656 FindWindowById really points to a wxButton then the Python object
1657 constructed will be of a wxButtonPtr class instead of wxWindowPtr
1658 as before. This should reduce or eliminiate the need for
1659 wxPyTypeCast. (Woo Hoo!) The objects returned are still not the
1660 original Python object, but that is the next step. (Although it
1661 will probably only work on Python 2.1 and beyond because it will
1662 use weak references.)</p>
1663 <p class="last">This first phase of the OOR plan is fairly significant and has
1664 required a lot of changes all over wxPython, most of which should
1665 be transparent to you, however I'm not 100% sure that it didn't
1666 introduce any new bugs that are hiding somewhere and didn't get
1667 stomped on during my testing. So please be sure to test everything
1668 thoroughly when you install this version and be sure to report any
1669 object-type related oddities to me.</p>
1670 </dd>
1671 </dl>
1672 <p>There is now a wxObject class that most other classes derive from like
1673 in C++, but the methods provided don't really match but are wxPython
1674 specific. It could have been added long ago but OOR required it so it
1675 finally got done.</p>
1676 <p>Finally added wxPyLineShape.GetLineControlPoints, which has been on my
1677 list for a while. The above OOR modification made this easier.</p>
1678 <p>Fixed the __cmp__ methods for wxPoint and others.</p>
1679 <p>Added wxWave.</p>
1680 <p>Added the wxPython.lib.mixins package to the library, it is where
1681 useful mix-in classes can be placed. Currently there is one to help
1682 make the columns in a wxListCtrl sortable, and the MagicIMageList from
1683 Mike Fletcher. If you have any custom code that can be factored out
1684 of existing classes into a mix-in that would be useful to others
1685 please send it to me for inclusion in this package.</p>
1686 <p>Added a few little sample applications to help newbies to get started
1687 by having smaller functional apps to play with. They can be found in
1688 wxPython/samples.</p>
1689 </div>
1690 <div class="section" id="id24">
1691 <h1><a name="id24">2.2.7</a></h1>
1692 <ul class="simple">
1693 <li>19-Jun-2001</li>
1694 </ul>
1695 <p>No changes happened in the Python wrappers for this release, only
1696 changes and fixes in the wxWindows library.</p>
1697 </div>
1698 <div class="section" id="id25">
1699 <h1><a name="id25">2.2.5</a></h1>
1700 <ul class="simple">
1701 <li>30-Jan-2001</li>
1702 </ul>
1703 <p>New typemaps for wxString when compiling for Python 2.0 and beyond
1704 that allow Unicode objects to be passed as well as String objects. If
1705 a Unicode object is passed PyString_AsStringAndSize is used to convert
1706 it to a wxString using the default encoding.</p>
1707 <p>Fixed the generic buttons so tool tips work for them.</p>
1708 <p>Fixed a bug in the demo's tree control.</p>
1709 <p>Added a listbox to the listbox demo that shows how to find items with
1710 a matching prefix as keys are typed.</p>
1711 <p>Added code to the wxListCtrl demo to show how to get text from a
1712 column in report mode.</p>
1713 <p>Added code to the toolbar demo to clear the long help from the status
1714 bar after 2 seconds.</p>
1715 <p>Added wxJoystick.</p>
1716 <p>Fixed wxTimer so it can be used as described in the docs, either with
1717 a Notify method in a subclass, or sending an event to a wxEvtHandler
1718 object, (usually a window.)</p>
1719 <p>Added wxNotifyEvent.Allow()</p>
1720 <p>Fixed GOBS of reference leaks.</p>
1721 <p>Massive code changes and cleanup to allow wxPython to be split into
1722 multiple extension modules again. A Python CObject is used to allow
1723 the &quot;export&quot; of SWIG functions and other common helper functions from
1724 the wxc module to other modules, even if they are in separate shared
1725 libraries. Should also be usable from 3rd party code, just include
1726 wxPython/src/export.h</p>
1727 <p>Changed the default setup so the following are built as separate
1728 extension modules: calendar, glcanvas, grid, html, ogl, stc, and
1729 utils. Will probably add more later.</p>
1730 <p>Changed the wxPrinterDC to use the new constructor taking a
1731 wxPrintData object. The old ctor is still there using the
1732 wxPrinterDC2 name.</p>
1733 <p>Added wxPython.lib.anchors.py from Riaan Booysen. It contains a class
1734 that implements Delphi's Anchors with wxLayoutConstraints.</p>
1735 <p>Added wxPython.lib.fancytext from Timothy Hochberg.</p>
1736 <p>Changed the GenericButtons to send their event in idle time, so the
1737 mouse won't be captured when the event handler is called.</p>
1738 <p>Added wxPython.lib.rpcMixin from Greg Landrum, although it's not
1739 integrated with the demo yet. It allows a wxPython GUI to be an
1740 XML-RPC server.</p>
1741 </div>
1742 <div class="section" id="new-in-2-2-2">
1743 <h1><a name="new-in-2-2-2">New in 2.2.2</a></h1>
1744 <ul class="simple">
1745 <li>26-Oct-2000</li>
1746 </ul>
1747 <p>Significantly changed how the wxStyledtextCtrl code that wraps
1748 Scintilla is implemented. Most of it is now automatically generated
1749 from an interface definition file provided by Scintilla. This means
1750 that it will be much easier to stay in sync with new Scintilla
1751 releases, but also means that some of the method and identifier names
1752 have changed. See wxPython/demo/data/stc.h for a copy of the C++
1753 interface from which the Python interface is generated. There is now
1754 some inline documentation in that file that should really help explain
1755 how things work.</p>
1756 <p>I am now using the Python Distutils to build wxPython and to make some
1757 of the distribution files. (See <a class="reference" href="http://www.python.org/sigs/distutils-sig/">http://www.python.org/sigs/distutils-sig/</a>)
1758 This means no more messing with my kludgy build.py/Makefile hack,
1759 builds will be more consistent with other Python extensions that also
1760 use Distutils, and will hopefully make wxPython easier to build for
1761 platforms where there have been troubles before. If you are building
1762 wxPython for Python 1.5.2 or for 1.6, then you will need to get and
1763 install version 1.0 of Distutils from the website above. If you are
1764 using Python 2.0 then you already have it.</p>
1765 <p>Added wxInputStream and the wxFileSystem family of classes,
1766 contributed by Joerg Baumann.</p>
1767 <p>Added wxProcess and support for it to wxExecute. wxProcess lets you
1768 get notified when an asyncronous child process terminates, and also to
1769 get input/output streams for the child process's stdout, stderr and
1770 stdin.</p>
1771 <p>Removed the old python sizers.</p>
1772 <p>Added __add__, __sub__ and __cmp__ (equality check only) for wxPoint
1773 and wxRealPoint.</p>
1774 <p>Changed the build to make one big extension module instead of one for
1775 the core and each contrib. This allowed me to do away with the
1776 libwxPyHelpers.so on unix systems.</p>
1777 <p>Lots of little fixes here and there.</p>
1778 <p>Some hacks on wxGTK to try and make the AutoComplete listbox in the
1779 wxStyledTextCtrl to behave better. It's still not as nice as on
1780 wxMSW, but at least it's a bit more usable now.</p>
1781 </div>
1782 <div class="section" id="new-in-2-2-1">
1783 <h1><a name="new-in-2-2-1">New in 2.2.1</a></h1>
1784 <ul class="simple">
1785 <li>22-Aug-2000</li>
1786 </ul>
1787 <p>Various tweaks, fixes, missing methods, etc.</p>
1788 <p>Added example use of wxTaskBarIcon to the demo.</p>
1789 </div>
1790 <div class="section" id="new-in-2-2-0">
1791 <h1><a name="new-in-2-2-0">New in 2.2.0</a></h1>
1792 <ul class="simple">
1793 <li>17-Jul-2000</li>
1794 </ul>
1795 <p>Added wxLog and friends.</p>
1796 <p>Added wxFrame.ShowFullScreen for MSW.</p>
1797 <p>Added PyShellWindow to the wxPython.lib package.</p>
1798 </div>
1799 <div class="section" id="new-in-2-1-16">
1800 <h1><a name="new-in-2-1-16">New in 2.1.16</a></h1>
1801 <ul class="simple">
1802 <li>12-Jun-2000</li>
1803 </ul>
1804 <p>Added an attribute named labelDelta to the generic buttons that
1805 specifies how far to offset the label when the button is in the
1806 depressed state.</p>
1807 <p>Added wxTipProvider and friends. See the demo for an example.</p>
1808 <p>wxGrid can now change the cell highlight colour.</p>
1809 <p>Added wxDragImage.</p>
1810 <p>Fixed printing on wxGTK.</p>
1811 <p>Added wxDateTime, wxTimeSpan, and wxDateSpan to wxPython.utils.</p>
1812 <p>Added wxCalendarCtrl.</p>
1813 <p>WARNING: A while back I asked what should be done about the Magic
1814 Method Names. (Methods that are automatically turned into event
1815 handlers by virtue of their name.) The consensus was that it is more
1816 confusing to have them than to try and expand them to have greater
1817 coverage. I am finally getting around to removing the code that
1818 generates the event binding. This means that if you are using any of
1819 the following method names without a EVT_* call that you need to
1820 modify your code to add the EVT_* to hook the event to the method.</p>
1821 <blockquote>
1822 OnChar
1823 OnSize
1824 OnEraseBackground
1825 OnSysColourChanged
1826 OnInitDialog
1827 OnPaint
1828 OnIdle
1829 OnActivate
1830 OnMenuHighlight
1831 OnCloseWindow
1832 OnScroll</blockquote>
1833 <p>Added wxSpinCtrl.</p>
1834 </div>
1835 <div class="section" id="new-in-2-1-15">
1836 <h1><a name="new-in-2-1-15">New in 2.1.15</a></h1>
1837 <ul class="simple">
1838 <li>25-Apr-2000</li>
1839 </ul>
1840 <p>Fixed wxTreeCtrl.HitTest to return both the tree item as well as the
1841 flags that clairify where the click was in relation to the item.</p>
1842 <p>Fixed thread state problem in wxTreeCtrl.GetBoundingBox and
1843 GetSelections.</p>
1844 <p>Fixed some problems in OGL. Also wxShape.SetClientData and
1845 .GetClientData can now deal with Python objects.</p>
1846 <p>Added wxListCtrl.SortItems and changed the demo to show how to use it.</p>
1847 <p>Plugged a memory leak.</p>
1848 <p>Wrapped the new wxGrid and friends. The old wxGrid class is no longer
1849 available. There are some incompatibilities, and unfortunately the
1850 new classes are not documented yet, (however the methods are more
1851 consistent with each other now so you may be able to guess pretty
1852 good...)</p>
1853 <p>Updated filebrowsebutton.py and calendar.py with changes from their
1854 authors. There is now a FileBrowseButtonWithHistory class (what a
1855 mouthful!) and wxCalendar has printing support.</p>
1856 <p>Added ActiveXWrapper to the library, and some good demos of it too.
1857 It works great for embedding a COM (a.k.a OCX, a.k.a ActiveX) control
1858 in a window and calling its methods. It actually creates a new class
1859 on the fly that derives from wxWindow, the COM CoClass and others
1860 needed to make it all work. The resulting class can be instantiated
1861 just like wxWindow, used in sizers, etc. It also responds to all COM
1862 method calls, properties, etc., and if the class or a mix-in has
1863 matching method names, then the COM events will be propogated back to
1864 them.</p>
1865 <p>Created a typemap that allows a string to be used for parameters
1866 expecting a wxColour type. The string is either a colour name as
1867 defined in the wxColourDatabase, or a colour spec of the form
1868 &quot;#RRGGBB&quot;. See the wxStyledTextCtrl demo for an example.</p>
1869 <p>I almost forgot to mention the wxStyledTextCtrl! Yes, the
1870 wxStyledTextCtrl is finally in wxPython!! (And the crowd goes
1871 wild...) There's no documentaTion yet (the crowd boos and hisses...)
1872 but I've included a very readable source file in the
1873 wxPython/demo/data directory, a couple fairly good examples, and you
1874 can also refer to the Scintilla documentaion at
1875 <a class="reference" href="http://www.scintilla.org/ScintillaDoc.html">http://www.scintilla.org/ScintillaDoc.html</a> to help fill in the gaps
1876 until the docs are done. (The croud murmers contentedly as the tool
1877 provider smiles convincingly and removes his flame-proof suit.)</p>
1878 </div>
1879 <div class="section" id="what-s-new-in-2-1-13">
1880 <h1><a name="what-s-new-in-2-1-13">What's new in 2.1.13</a></h1>
1881 <ul class="simple">
1882 <li>3-Feb-2000</li>
1883 </ul>
1884 <p>Skipped a version number to match what has been released for wxGTK.</p>
1885 <p>Updated wxMVCTree and added a demo for it, also fixed layout on GTK
1886 and some flicker problems.</p>
1887 <p>Added a wrapper class for the Visualization ToolKit (or VTK) in the
1888 wxPython.lib.vtk module. (<a class="reference" href="http://www.kitware.com/">http://www.kitware.com/</a>)</p>
1889 <p>Fixed wxTreeCtrl.SetItemImage and GetItemImage to recognise the new
1890 &quot;which&quot; parameter.</p>
1891 <p>Added wxPython.lib.spashscreen from Mike Fletcher.</p>
1892 <p>Added wxPython.lib.filebrowsebutton also from Mike Fletcher.</p>
1893 <p>Renamed wxTreeCtrl.GetParent to GetItemParent to avoid a name clash
1894 with wxWindow.GetParent.</p>
1895 <p>Added wxIntersectRect to compute the intersection of two wxRect's.
1896 It is used like this:</p>
1897 <blockquote>
1898 intersect = wxIntersectRect(rect1, rect2)</blockquote>
1899 <p>If r1 and r2 don't intersect then None is returned, otherwise the
1900 rectangle representing the intersection is returned.</p>
1901 <p>Some bug fixes for Clipboard and Drag-n-Drop.</p>
1902 <p>Rotated text!!! WooHoo! (See wxDC.DrawRotatedText())</p>
1903 <p>Added a set of Generic Buttons to the library. These are simple
1904 window classes that look and act like native buttons, but you can have
1905 a bit more control over them. The bezel width can be set in addition
1906 to colours, fonts, etc. There is a ToggleButton as well as Bitmap
1907 versions too. They should also serve as a good example of how to
1908 create your own classes derived from wxControl.</p>
1909 <p>The C++ wxToolBar classes have been redone, and so have the wxPython
1910 wrappers. There have been slight modifications to some of the methods
1911 but shouldn't impact anybody too much. I took the opportunity to add
1912 support for setting user data on each toolbar tool. The new AddTool
1913 methods look like this:</p>
1914 <blockquote>
1915 <dl class="docutils">
1916 <dt>def AddTool(ID,</dt>
1917 <dd>bitmap,
1918 pushedBitmap = wxNullBitmap,
1919 toggle = FALSE,
1920 clientData = NULL,
1921 shortHelpString = &quot;&quot;,
1922 longHelpString = &quot;&quot;)</dd>
1923 <dt>def AddSimpleTool(ID,</dt>
1924 <dd>bitmap,
1925 shortHelpString = &quot;&quot;,
1926 longHelpString = &quot;&quot;,
1927 toggle=FALSE)</dd>
1928 </dl>
1929 </blockquote>
1930 <p>There are also corresponding InsertTool and InsertSimpleTool methods
1931 that additionally take an integer position as the first parameter.</p>
1932 <p>Added a wrapper for the new PCX and TIFF ImageHandlers.</p>
1933 <p>wxRect now simulates attributes named left, right, top and bottom.</p>
1934 <p>Removed all non wx stuff from the glcanvas module since DA's PyOpenGL
1935 is better and compatible with the wxGLCanvas. You can get it at
1936 <a class="reference" href="http://starship.python.net:9673/crew/da/Code/PyOpenGL">http://starship.python.net:9673/crew/da/Code/PyOpenGL</a>.</p>
1937 <p>Added some missing EVT functions.</p>
1938 <p>Added Dirk Holtwic's editor classes to the wxPython.lib.editor
1939 package.</p>
1940 <p>Changed all the &quot;LIST&quot; parameter names to &quot;choices&quot; to match the docs.</p>
1941 <p>More fixes for the wxFloatBar, and it now works on wxGTK even better
1942 than wxMSW! (The feat is accomplished by using the wxTB_DOCKABLE
1943 style flag instead of trying to float it ourselves.)</p>
1944 </div>
1945 <div class="section" id="what-s-new-in-2-1-11">
1946 <h1><a name="what-s-new-in-2-1-11">What's new in 2.1.11</a></h1>
1947 <ul class="simple">
1948 <li>13-Nov-1999</li>
1949 </ul>
1950 <p>Skipped a few version numbers so wxMSW, wxGTK and wxPython are all
1951 syncronized.</p>
1952 <p>wxImage.SetData now makes a copy of the image data before giving it to
1953 wxImage. I mistakenly thought that wxImage would copy the data
1954 itself.</p>
1955 <p>Fixed wxMSW's notebook so the pages get their size set as they are
1956 being added. This should remove the need for our
1957 wxNotebook.ResizeChildren hack.</p>
1958 <p>wxPanels now support AutoLayout, and wxNotebooks and wxSplitterWindows
1959 no longer tell their children to Layout() themselves. This will
1960 probably only effect you if you have a wxWindow with AutoLayout inside
1961 a notebook or splitter. If so, either change it to a wxPanel or add
1962 an EVT_SIZE handler that calls Layout().</p>
1963 <p>Fixed deadlock problem that happened when using threads.</p>
1964 <p>Added new HTML printing classes.</p>
1965 <p>Added wxWindow.GetHandle</p>
1966 <p>Apparently wxMouseEvent.Position has been deprecated in wxWindows as
1967 it is no longer available by default. You can use GetPositionTuple
1968 (returning a tuple with x,y) instead, or GetPosition (returning a
1969 wxPoint.)</p>
1970 <p>Added wxPostEvent function that allows events to be posted and then
1971 processed later. This is a thread-safe way to interact with the GUI
1972 thread from other threads.</p>
1973 <p>Added Clipboard and Drag-and-Drop classes.</p>
1974 <p>Added wxFontEnumerator.</p>
1975 <p>Many updates to wxMenu, wxMenuBar.</p>
1976 <p>wxPyEvent and wxPyCommandEvent derived classes now give you the actual
1977 Python object in the event handler instead of a new shadow.</p>
1978 <p>Added a Calendar widget from Lorne White to the library.</p>
1979 <p>Made some fixes to the wxFloatbar. It still has some troubles on
1980 wxGTK...</p>
1981 <p>Added an MVC tree control from Bryn Keller to the library.</p>
1982 </div>
1983 <div class="section" id="what-s-new-in-2-1-5">
1984 <h1><a name="what-s-new-in-2-1-5">What's new in 2.1.5</a></h1>
1985 <ul class="simple">
1986 <li>12-Oct-1999</li>
1987 </ul>
1988 <p>This is a quick bug-fix release to take care of a few nasties that
1989 crept in at the last minute before 2.1.4 was called done. No new
1990 major features.</p>
1991 </div>
1992 <div class="section" id="what-s-new-in-2-1-4">
1993 <h1><a name="what-s-new-in-2-1-4">What's new in 2.1.4</a></h1>
1994 <ul class="simple">
1995 <li>7-Oct-1999</li>
1996 </ul>
1997 <p>This release is NOT syncronized with a snapshot release of wxGTK or
1998 wxMSW. For MSW this isn't much of a problem since you can get the
1999 binaries from the web site. For other platforms you'll have to build
2000 wxGTK from CVS. (See <a class="reference" href="http://web.ukonline.co.uk/julian.smart/wxwin/cvs.htm">http://web.ukonline.co.uk/julian.smart/wxwin/cvs.htm</a>)
2001 To get the same set of sources from CVS that I used, checkout using
2002 the wxPy-2-1-4 tag.</p>
2003 <p>Now back to what's new...</p>
2004 <p>Much more support for event-less callbacks and add-on modules.</p>
2005 <p>Created add-on module with wxOGL classes.</p>
2006 <p>Added wxWindow.GetChildren(). Be careful of this. It returns a <em>copy</em>
2007 of the list of the window's children. While you are using the list if
2008 anything changes in the real list (a child is deleted, etc.) then the
2009 list you are holding will suddenly have window references to garbage
2010 memory and your app will likely crash. But if you are careful it works
2011 great!</p>
2012 <p>Added a bunch of new and missing methods to wxTreeCrtl. The
2013 SortChildren method is now supported, but currently only for the
2014 default sort order.</p>
2015 <p>Added typemaps for wxSize, wxPoint, wxRealPoint, and wxRect that allow
2016 either the actual objects or Python sequence values to be used. For
2017 example, the following are equivallent:</p>
2018 <pre class="literal-block">
2019 win = wxWindow(parent, size = wxSize(100, 100))
2020 win = wxWindow(parent, size = (100, 100))
2021 </pre>
2022 <p>Super-charged the wxHtml module. You can now create your own tag
2023 handlers and also have access to the parser and cell classes. There
2024 is a tag handler in the library at wxPython.lib.wxpTag that
2025 understands the WXP tag and is able to place wxPython windows on HTML
2026 pages. See the demo for an example.</p>
2027 <p>A bunch of the methods of wxMenuBar were previously ifdef'd out for
2028 wxGTK. Added them back in since the methods exist now.</p>
2029 <p>Wrapped the wxHtmlHelpController and related classes.</p>
2030 <p>Wrapped the C++ versions of wxSizer and friends. The Python-only
2031 versions are still in the library, but deprecated. (You will get a
2032 warning message if you try to use them, but the warning can be
2033 disabled.) The usage of the C++ versions is slightly different, and
2034 the functionality of wxBorderSizer is now part of wxBoxSizer. I have
2035 added a few methods to wxSizer to try and make the transition as
2036 smooth as possible, I combined all Add methods into a single method
2037 that handles all cases, added an AddMany method, etc. One step I did
2038 not take was to make the default value of flag in the Add method be
2039 wxGROW. This would have made it more backward compatible, but less
2040 portable to and from wxWin C++ code. Please see the docs and demo for
2041 further details.</p>
2042 <p>Added wxPyEvent and wxPyCommandEvent classes, derived from wxEvent and
2043 wxCommandEvent. Each of them has SetPyData and GetPyData methods that
2044 accept or return a single Python object. You can use these classes
2045 directly or derive from them to create your own types of event objects
2046 that can pass through the wxWindows event system without loosing their
2047 Python parts (as long as they are stored with SetPyData.) Stay tuned
2048 for more info and examples in future releases.</p>
2049 <p>Added wxPython.lib.grids as an example of how to derive a new sizer
2050 from the C++ sizers. In this module you will find wxGridSizer and
2051 wxFlexGridSizer. wxGridSizer arrainges its items in a grid in which
2052 all the widths and heights are the same. wxFlexgridSizer allows
2053 different widths and heights, and you can also specify rows and/or
2054 columns that are growable. See the demo for a couple examples for how
2055 to use them.</p>
2056 <p>Added the wxValidator class, and created a class named wxPyValidator
2057 that should be used for the base class of any Python validators. See
2058 the demo for an example. Please note that you MUST implement a Clone
2059 method in your validator classes because of the way some things work
2060 in the underlying C++ library. I did not add wxTextValidator because
2061 of some issues of how it transfers data to and from a wxString, which
2062 in wxPython is automatically translated to and from Python strings, so
2063 there would never be a concrete wxString that would hang around long
2064 enough for the validator to do its job. On the other hand, it should
2065 be real easy to duplicate the functionality of wxTextValidator in a
2066 pure Python class derived from wxPyValidator.</p>
2067 <p>I've finally added a feature that has been on my list for close to two
2068 years! Ever wondered what that zero is for when you create your app
2069 object? Well now you can leave it out or explicitly set it to a true
2070 value. This value now controls what is to be done with sys.stdout and
2071 sys.stderr. A false value leaves them alone, and a true value sets
2072 them to an instance of wxPyOnDemandOutputWindow. (On windows the
2073 default is true, on unix platforms the default is false.) This class
2074 creates a frame containing a wxTextCtrl as soon as anything is written
2075 to sys.stdout or sys.stderr. If you close the window it will come
2076 back again the next time something is written. (You can call
2077 app.RestoreStdio to turn this off.) If you would rather that the stdio be
2078 redirected to a file, you can provide a second parameter to your app
2079 object's constructor that is a filename. If you want to use your own
2080 class instead of wxPyOnDemandOutputWindow you can either implement
2081 RedirectStdio() in you app class or change the value of
2082 wxApp.outputWindowClass like this:</p>
2083 <pre class="literal-block">
2084 class MyApp(wxApp):
2085 outputWindowClass = MyClass
2086
2087 def OnInit(self):
2088 frame = MyFrame()
2089 self.SetTopWindow(frame)
2090 return true
2091 </pre>
2092 <p>Please see the implementation of wxPyOnDemandOutputWindow and wxApp in
2093 wx.py for more details. A few words of caution: if you are running
2094 your app in a debugger, changing sys.stdout and sys.stderr is likely
2095 to really screw things up.</p>
2096 <p>Added wxCaret. Unfortunately it's author has still not documented it
2097 in the wxWindows docs...</p>
2098 <p>Some new 3rd party contributions in wxPython.lib. PyShell, in
2099 shell.py is an interesting implementaion of an interactive Python
2100 shell in wxWindows. floatbar.py has a class derived from wxToolBar
2101 that can sense mouse drags and then reparent itself into another
2102 frame. Moving the new frame close to where it came from puts the tool
2103 bar back into the original parent. (Unfortunately there is currently
2104 a bug in wxGTK's wxFrame.SetToolBar so the FloatBar has some
2105 problems...)</p>
2106 </div>
2107 <div class="section" id="what-s-new-in-2-1b3">
2108 <h1><a name="what-s-new-in-2-1b3">What's new in 2.1b3</a></h1>
2109 <ul class="simple">
2110 <li>1-Sep-1999</li>
2111 </ul>
2112 <p>This release is syncronized with release 2.1 snapshot 9 of wxWindows.</p>
2113 <p>Switched to using SWIG from CVS (see <a class="reference" href="http://swig.cs.uchicago.edu/cvs.html">http://swig.cs.uchicago.edu/cvs.html</a>)
2114 for some of the new features and such. Also they have encorporated my
2115 patches so there is really no reason to stick with the current (very
2116 old) release... This version of SWIG gives the following new
2117 features:</p>
2118 <blockquote>
2119 <ol class="arabic">
2120 <li><p class="first">Keyword arguments. You no longer have to specify all the
2121 parameters with defaults to a method just to specify a
2122 non-default value on the end. You can now do this instead:</p>
2123 <blockquote>
2124 <p>win = wxWindow(parent, -1, style = mystyle)</p>
2125 </blockquote>
2126 </li>
2127 <li><p class="first">There is now an an equivalence between Python's None and C++'s
2128 NULL. This means that any methods that might return NULL will
2129 now return None and you can use none where wxWindows might be
2130 expecting NULL. This makes things much more snake-ish.</p>
2131 </li>
2132 </ol>
2133 </blockquote>
2134 <p>There is a new build system based on a new Python program instead of
2135 raw makefiles. Now wxPython builds are virtually the same on MSW or
2136 Unix systems. See the end of this file for new build instructions and
2137 see distrib/build.py for more details.</p>
2138 <p>wxDC.Bilt now includes the useMask parameter, and has been split into
2139 two different versions. wxDC.BlitXY is like what was there before and
2140 takes raw coordinants and sizes, and the new wxDC.Blit is for the new
2141 interface using wxPoints and a wxSize.</p>
2142 </div>
2143 <div class="section" id="what-s-new-in-2-1b2">
2144 <h1><a name="what-s-new-in-2-1b2">What's new in 2.1b2</a></h1>
2145 <ul class="simple">
2146 <li>6-Aug-1999</li>
2147 </ul>
2148 <p>Added the missing wxWindow.GetUpdateRegion() method.</p>
2149 <p>Made a new change in SWIG (update your patches everybody) that
2150 provides a fix for global shadow objects that get an exception in
2151 their __del__ when their extension module has already been deleted.
2152 It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about
2153 line 496 if you want to do it by hand.</p>
2154 <p>It is now possible to run through MainLoop more than once in any one
2155 process. The cleanup that used to happen as MainLoop completed (and
2156 prevented it from running again) has been delayed until the wxc module
2157 is being unloaded by Python.</p>
2158 <p>I fixed a bunch of stuff in the C++ version of wxGrid so it wouldn't
2159 make wxPython look bad.</p>
2160 <p>wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added
2161 wxWindow.PopupMenuXY to be consistent with some other methods.</p>
2162 <p>Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace.</p>
2163 <p>You can now provide your own app.MainLoop method. See
2164 wxPython/demo/demoMainLoop.py for an example and some explaination.</p>
2165 <p>Got the in-place-edit for the wxTreeCtrl fixed and added some demo
2166 code to show how to use it.</p>
2167 <p>Put the wxIcon constructor back in for GTK as it now has one that
2168 matches MSW's.</p>
2169 <p>Added wxGrid.GetCells</p>
2170 <p>Added wxSystemSettings static methods as functions with names like
2171 wxSystemSettings_GetSystemColour.</p>
2172 <p>Removed wxPyMenu since using menu callbacks have been deprecated in
2173 wxWindows. Use wxMenu and events instead.</p>
2174 <dl class="docutils">
2175 <dt>Added alternate wxBitmap constructor (for MSW only) as</dt>
2176 <dd>wxBitmapFromData(data, type, width, height, depth = 1)</dd>
2177 </dl>
2178 <p>Added a helper function named wxPyTypeCast that can convert shadow
2179 objects of one type into shadow objects of another type. (Like doing
2180 a down-cast.) See the implementation in wx.py for some docs.</p>
2181 <p>Fixed wxImage GetData and SetData to properly use String objects for
2182 data transfer.</p>
2183 <p>Added access methods to wxGridEvent.</p>
2184 <p>New Makefile/Setup files supporting multiple dynamic extension modules
2185 for unix systems.</p>
2186 <p>Fixes for the wxGLCanvas demo to work around a strange bug in gtk.</p>
2187 <p>SWIG support routines now compiled separately instead of being bundled
2188 in wx.cpp.</p>
2189 </div>
2190 <div class="section" id="what-s-new-in-2-1b1">
2191 <h1><a name="what-s-new-in-2-1b1">What's new in 2.1b1</a></h1>
2192 <ul class="simple">
2193 <li>28-Jun-1999</li>
2194 </ul>
2195 <p>Fixed wxComboBox.SetSelection so that it actually sets the selected
2196 item. (Actually just removed it from wxPython and let it default to
2197 wxChoice.SetSelection which was already doing the right thing.)</p>
2198 <p>Added the Printing Framework.</p>
2199 <p>Switched back to using the wxWindows DLL for the pre-built Win32
2200 version. The problem was needing to reinitialize static class info
2201 data after loading each extension module.</p>
2202 <p>Lots of little tweaks and additions to reflect changes to various
2203 wxWindows classes.</p>
2204 <p>Fixed a bug with attaching objects to tree items. Actually was a
2205 symptom of a larger problem with not obtaining the interpreter lock
2206 when doing any Py_DECREFs.</p>
2207 <p>wxSizer and friends. Sizers are layout tools that manage a colection
2208 of windows and sizers. Different types of sizers apply different
2209 types of layout algorithms. You saw it here first! These classes are
2210 not even in the wxWindows C++ library yet!</p>
2211 </div>
2212 <div class="section" id="what-s-new-in-2-0b9">
2213 <h1><a name="what-s-new-in-2-0b9">What's new in 2.0b9</a></h1>
2214 <ul class="simple">
2215 <li>1-May-1999</li>
2216 </ul>
2217 <p>Bug fix for ListCtrl in test4.py (Was a missing file... DSM!)</p>
2218 <p>Bug fix for occassional GPF on Win32 systems upon termination of a
2219 wxPython application.</p>
2220 <p>Added wxListBox.GetSelections returning selections as a Tuple.</p>
2221 <p>Added a wxTreeItemData that is able to hold any Python object and be
2222 associated with items in a wxTreeCtrl. Added test pytree.py to show
2223 this feature off.</p>
2224 <p>Added wxSafeYield function.</p>
2225 <p>OpenGL Canvas can be optionally compiled in to wxPython.</p>
2226 <p>Awesome new Demo Framework for showing off wxPython and for learning
2227 how it all works.</p>
2228 <p>The pre-built Win32 version is no longer distributing the wxWindows
2229 DLL. It is statically linked with the wxWindows library instead.</p>
2230 <p>Added a couple missing items from the docs.</p>
2231 <p>Added wxImage, wxImageHandler, wxPNGHandler, wxJPEGHandler,
2232 wxGIFHandler and wxBMPHandler.</p>
2233 <p>Added new methods to wxTextCtrl.</p>
2234 <p>Fixed some problems with how SWIG was wrapping some wxTreeCtrl
2235 methods.</p>
2236 </div>
2237 <div class="section" id="what-s-new-in-2-0b8">
2238 <h1><a name="what-s-new-in-2-0b8">What's new in 2.0b8</a></h1>
2239 <ul class="simple">
2240 <li>28-Mar-1999</li>
2241 </ul>
2242 <p>Support for using Python threads in wxPython apps.</p>
2243 <p>Several missing methods from various classes.</p>
2244 <p>Various bug fixes.</p>
2245 </div>
2246 <div class="section" id="what-s-new-in-2-0b7">
2247 <h1><a name="what-s-new-in-2-0b7">What's new in 2.0b7</a></h1>
2248 <ul class="simple">
2249 <li>15-Mar-1999</li>
2250 </ul>
2251 <p>Added DLG_PNT and DLG_SZE convienience methods to wxWindow class.</p>
2252 <p>Added missing constructor and other methods for wxMenuItem.</p>
2253 </div>
2254 <div class="section" id="what-s-new-in-2-0b6">
2255 <h1><a name="what-s-new-in-2-0b6">What's new in 2.0b6</a></h1>
2256 <ul class="simple">
2257 <li>4-Mar-1999</li>
2258 </ul>
2259 <p>Just a quickie update to fix the self-installer to be compatible with
2260 Python 1.5.2b2's Registry settings.</p>
2261 </div>
2262 <div class="section" id="what-s-new-in-2-0b5">
2263 <h1><a name="what-s-new-in-2-0b5">What's new in 2.0b5</a></h1>
2264 <ul class="simple">
2265 <li>25-Feb-1999</li>
2266 </ul>
2267 <p>Well obviously the numbering scheme has changed. I did this to
2268 reflect the fact that this truly is the second major revision of
2269 wxPython, (well the third actually if you count the one I did for
2270 wxWindows 1.68 and then threw away...) and also that it is associated
2271 with the 2.0 version of wxWindows.</p>
2272 <p>I have finally started documenting wxPython. There are several pages
2273 in the wxWindows documentation tree specifically about wxPython, and I
2274 have added notes within the class references about where and how wxPython
2275 diverges from wxWindows.</p>
2276 <p>Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
2277 window handle. If you can get the window handle into the python code,
2278 it should just work... More news on this later.</p>
2279 <p>Added wxImageList, wxToolTip.</p>
2280 <p>Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
2281 wxRegConfig class.</p>
2282 <p>As usual, some bug fixes, tweaks, etc.</p>
2283 </div>
2284 <div class="section" id="what-s-new-in-0-5-3">
2285 <h1><a name="what-s-new-in-0-5-3">What's new in 0.5.3</a></h1>
2286 <ul class="simple">
2287 <li>30-Jan-1999</li>
2288 </ul>
2289 <p>Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.</p>
2290 <p>Various cleanup, tweaks, minor additions, etc. to maintain
2291 compatibility with the current wxWindows.</p>
2292 </div>
2293 <div class="section" id="what-s-new-in-0-5-0">
2294 <h1><a name="what-s-new-in-0-5-0">What's new in 0.5.0</a></h1>
2295 <p>Changed the import semantics from <tt class="docutils literal"><span class="pre">&quot;from</span> <span class="pre">wxPython</span> <span class="pre">import</span> <span class="pre">*&quot;</span></tt> to
2296 <tt class="docutils literal"><span class="pre">&quot;from</span> <span class="pre">wxPython.wx</span> <span class="pre">import</span> <span class="pre">*&quot;</span></tt> This is for people who are worried about
2297 namespace pollution, they can use &quot;from wxPython import wx&quot; and then
2298 prefix all the wxPython identifiers with &quot;wx.&quot;</p>
2299 <p>Added wxTaskbarIcon for wxMSW.</p>
2300 <p>Made the events work for wxGrid.</p>
2301 <p>Added wxConfig.</p>
2302 <p>Added wxMiniFrame for wxGTK.</p>
2303 <p>Changed many of the args and return values that were pointers to gdi
2304 objects to references to reflect changes in the wxWindows API.</p>
2305 <p>Other assorted fixes and additions.</p>
2306 </div>
2307 <div class="section" id="what-s-new-in-0-4-2">
2308 <h1><a name="what-s-new-in-0-4-2">What's new in 0.4.2</a></h1>
2309 <ul class="simple">
2310 <li>21-Oct-1998</li>
2311 </ul>
2312 <p>wxPython on wxGTK works!!! Both dynamic and static on Linux and
2313 static on Solaris have been tested. Many thanks go to Harm van der
2314 Heijden for his astute detective work on tracking down a nasty DECREF
2315 bug. Okay so I have to confess that it was just a DSM (Dumb Stupid
2316 Mistake) on my part but it was nasty none the less because the
2317 behavior was so different on different platforms.</p>
2318 <p>The dynamicly loaded module on Solaris is still segfaulting, so it
2319 must have been a different issue all along...</p>
2320 </div>
2321 <div class="section" id="what-s-new-in-0-4">
2322 <h1><a name="what-s-new-in-0-4">What's New in 0.4</a></h1>
2323 <ul class="simple">
2324 <li>2-Oct-1998</li>
2325 </ul>
2326 <p>1. Worked on wxGTK compatibility. It is partially working. On a
2327 Solaris/Sparc box wxPython is working but only when it is statically
2328 linked with the Python interpreter. When built as a dyamically loaded
2329 extension module, things start acting weirdly and it soon seg-faults.
2330 And on Linux both the statically linked and the dynamically linked
2331 version segfault shortly after starting up.</p>
2332 <ol class="arabic simple" start="2">
2333 <li>Added Toolbar, StatusBar and SplitterWindow classes.</li>
2334 <li>Varioius bug fixes, enhancements, etc.</li>
2335 </ol>
2336 </div>
2337 <div class="section" id="wxpython-0-3">
2338 <h1><a name="wxpython-0-3">wxPython 0.3</a></h1>
2339 <ul class="simple">
2340 <li>9-Aug-1998</li>
2341 </ul>
2342 <p>The first &quot;modern&quot; version of wxPython. See
2343 <a class="reference" href="http://wiki.wxpython.org/index.cgi/WxPythonHistory">http://wiki.wxpython.org/index.cgi/WxPythonHistory</a></p>
2344 </div>
2345 </div>
2346 </body>
2347 </html>