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