]>
Commit | Line | Data |
---|---|---|
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 | "Closing view crashes Python" 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 "Notepad" extension (under windows) that | |
38 | will exec Notepad on the currently open file. A new "Notepad" | |
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() & | |
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 "setup.py install --install-headers=path"</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 "free edit" 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 "_signOk" 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, ...) ---> (...(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 "2.6-unicode" 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("2.6-unicode", 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 <--> wxString conversions. The "Raw" | |
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 "UTF8" 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 "cooked" 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 >= 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 "gravity" 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 "this" attribute of all SWIGged classes is no longer a | |
581 | string containing a "swigified pointer", 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 "ascii", which would result in | |
593 | errors if the strings contained character codes >= 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->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: "Alt" 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 "stock" 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 "Cancel" 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>"Fixed" wx.grid.Grid.SetDefaultEditor and SetDefaultRenderer by making | |
752 | them register the editor or renderer for the "string" 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 "all ansii chars" (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 & 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 "C" (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 "C".</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 |