]>
Commit | Line | Data |
---|---|---|
73adcb01 | 1 | Recent Changes for wxPython |
8eda5e35 | 2 | ===================================================================== |
6d75ea8f | 3 | |
ca8071ca | 4 | |
66b50a8f | 5 | 2.5.3.3 |
ca8071ca RD |
6 | ------- |
7 | ||
7aada1e0 | 8 | wx.Sizer Add, Insert, and Prepend funcitons now return a reference to the |
6b9f434e RD |
9 | wx.SizerItem that was added to the sizer, and the wx.SizerItem has a |
10 | GetRect accessor to give the position of the item on the parent window. | |
7aada1e0 RD |
11 | |
12 | Added wx.Sizer.GetItem method which returns the wx.SizerItem for the given | |
13 | wx.Window, wx.Sizer or position index. | |
14 | ||
15 | wxMSW: wx.RadioButtons in the same group no longer have to be | |
16 | consecutive (there may be intervening controls). Without this fix, an | |
17 | out-of-sync assert is generated when clicking on a radio button and | |
18 | then calling GetValue(). | |
19 | ||
20 | XRC: | |
66b50a8f RD |
21 | - Added 'icon' property to wxFrame and wxDialog |
22 | - No longer ignores menu bitmaps on non-MSW platforms | |
23 | - Notebook page bitmaps are now supported | |
7aada1e0 RD |
24 | |
25 | wxMSW: fix for [ 1052989 ] TextCtrl.SetBackgroundColour(wx.NullColour) | |
26 | bug. | |
27 | ||
28 | Added wx.PasswordEntryDialog analagous to wx.TextEntryDialog, allows | |
29 | detecting entering an empty string vs. cancel unlike the | |
30 | wx.GetPasswordFromUser dialog function. | |
31 | ||
32 | ||
ca8071ca RD |
33 | OGL patch from Shane Holloway: |
34 | ||
35 | Two simple problems found in the new python ogl code. First is | |
36 | the patch for _canvas.py. Essentially: | |
37 | ||
38 | dx = abs(dc.LogicalToDeviceX(x - self._firstDragX)) | |
39 | dy = abs(dc.LogicalToDeviceY(y - self._firstDragY)) | |
40 | ||
41 | was incorrect because (x,y) and (self._firstDragX, | |
42 | self._firstDragY) are both already in Logical coordinates. | |
43 | Therefore the difference between the two is also in logical | |
44 | coordinates, and the conversion call is an error. This bug | |
45 | surfaces when you have OGL on a scrollwin, and you are far from | |
46 | the origin of the canvas. | |
47 | ||
48 | The second change in _composit.py basically removes the assumption | |
49 | that the child is in both self._children and self._divisions. | |
50 | Causes many problems when it's not. ;) | |
51 | ||
22685693 RD |
52 | Fixed GetSaveData and SetSaveData in wx.lib.multisash to not depend on |
53 | the default way that class objectss are converted to strings. | |
ca8071ca | 54 | |
7aada1e0 RD |
55 | Fixed problem in StyledTextCtrl.Set[H|V]ScrollBar that could leave the |
56 | internal scrollbar visible. | |
57 | ||
58 | Added wx.StandardPaths which provides methods for determining standard | |
59 | system paths for each platform. | |
60 | ||
61 | ||
62 | ||
ca8071ca RD |
63 | |
64 | ||
0dece789 | 65 | 2.5.3.1 |
4f5ff1b2 RD |
66 | ------- |
67 | ||
68 | wxMac focus and border refreshes corrected. | |
69 | ||
70 | Updated internal PNG library. | |
71 | ||
72 | wxMac fix for metal appearance on wx.ToolBar. | |
73 | ||
74 | wx.grid.Grid fix allowing DoGetBestSize to be called before CreateGrid | |
75 | (which means that a min size doesn't need to be specified.) | |
76 | ||
77 | wxMac fix for not sending a native click to a control if it is not | |
78 | enabled (does an enable itself) | |
79 | ||
31b46829 RD |
80 | Added wx.lib.ogl.DrawnShape, and fixed various little bugs in the new |
81 | OGL. | |
4f5ff1b2 RD |
82 | |
83 | Added support to XRC and XRCed for the 3-state checkbox flags and also | |
84 | for wx.ToggleButton. Updated the generic window styles supported by | |
85 | XRCed. | |
86 | ||
87 | It is now possible to create "stock" buttons. Basically this means | |
71e60f70 RD |
88 | that you only have to provide one of the stock IDs (and either an |
89 | empty label or a label that matches the stock label) when creating the | |
90 | button and wxWidgets will choose the stock label to go with it | |
91 | automatically. Additionally on the platforms that have a native | |
92 | concept of a stock button (currently only GTK2) then the native stock | |
93 | button will be used. For example, the following will result in a | |
94 | button with "Cancel" as the label and an accelerator on the "C", and | |
95 | if run on wxGTK2 then there will also be an image of a red X:: | |
4f5ff1b2 RD |
96 | |
97 | b = wx.Button(parent, wx.ID_CANCEL) | |
98 | ||
99 | ||
100 | Added wx.lib.ticker.Ticker class from Chris Mellon. | |
101 | ||
71e60f70 RD |
102 | Fix some incorrect clipping regions in wxSTC on wxGTK. |
103 | ||
104 | Added wrapper for wx.grid.Grid.GetOrCreateCellAttr. | |
105 | ||
11908acc RD |
106 | Removed my copy of distutils from the wxPython source tree. Now that |
107 | I am no longer doing builds on Python 2.1 the newest distutils is no | |
108 | longer needed. (There is still one small bug in Python 2.2 distutils | |
109 | on win32, but it is easily worked around.) This sovles the problem of | |
110 | incorrect builds on some systems where the system installed distutils | |
111 | has been patched to behave slightly differently, for example SuSE on | |
112 | x86_64 or Chandler's build. | |
113 | ||
da72c540 RD |
114 | Updated to SWIG 1.3.22 (plus my patch.) See wxPython/SWIG/README.txt |
115 | in the source tree if you need to use SWIG when building your own copy | |
116 | of wxPython, or other extension modules that need to integrate with | |
117 | the wxPython modules. | |
118 | ||
6afcb800 RD |
119 | Added wx.Frame.RequestUserAttention which, if the platform suports it, |
120 | will do something (such as flash the task bar item) to suggest to the | |
121 | user that they should look at that window. | |
122 | ||
31b46829 RD |
123 | "Fixed" wx.grid.Grid.SetDefaultEditor and SetDefaultRenderer by making |
124 | them register the editor or renderer for the "string" data type. | |
125 | ||
126 | Added depth param to wx.Image.ConvertToBitmap. | |
127 | ||
128 | Extended the wx.calendar.CalendarCtrl class with methods that get/set | |
129 | a Python datetime or date object. (These will only work with Python | |
130 | 2.3+) The methods are PySetDate, PyGetDate, PySetLowerDateLimit, | |
131 | PySetUpperDateLimit, PySetDateRange, PyGetLowerDateLimit, and | |
5f13b2ca RD |
132 | PyGetUpperDateLimit. Also, CalendarEvent was extended with PySetDate |
133 | and PyGetDate methods. | |
31b46829 | 134 | |
6c3f6fe9 RD |
135 | wxMSW: SetBackgroundColour on a wx.Choice or a wx.ComboBox will now |
136 | also set the colour of the dropdown. | |
137 | ||
8dca2f3d RD |
138 | wxMac: MessageDialog now supports wx.NO_DEFAULT style |
139 | ||
140 | wxMSW: added AssociateHandle and DissociateHandle to wx.Window | |
141 | ||
142 | wxMac: fix for toolbar tooltips | |
143 | ||
144 | wx.Sizer.Show (and Hide) now take an optional parameter specifying if | |
145 | the item to be shown should be searched for recursivly in subsizers, | |
146 | and return a boolean value indicating if the item was found. | |
147 | ||
96d49f0e RD |
148 | wxMSW: fixed MaximizeEvent generation in wx.Frame |
149 | ||
150 | wxMSW: fixed sending duplicate EVT_COMBOBOX events | |
151 | ||
152 | Smoother time estimation updates in wx.ProgressDialog (patch 992813) | |
153 | ||
154 | Made wx.Listbook events more consistent with wx.Notebook ones (patch | |
155 | 1001271) | |
156 | ||
157 | Fixed rounding errors in variable status bar panes widths computation | |
158 | (patch 1030021) | |
159 | ||
160 | Added possibility to specify printer bin (patch 910272) | |
161 | ||
162 | wxMSW: fixed wx.ListCtrl's SetWindowStyleFlag() to not remove | |
163 | WS_VISIBLE; also refresh the control automatically (closes bug | |
164 | 1019440) | |
165 | ||
166 | Added wx.Choicebook, yet another notebook-like control. | |
167 | ||
168 | wxMSW: Make radiobutton tab behaviour the same on MSW as in standard | |
169 | MSW app, i.e. tab into the activated, not necessarily the first radio | |
170 | button. | |
171 | ||
172 | Added limited support for wxEventLoop (you can't derive from a | |
173 | wx.PyEventLoop version yet...) Updated and moved the sample showing | |
174 | how to replace the MainLoop to samples/mainloop/mainloop.py. | |
8dca2f3d | 175 | |
38b97c15 RD |
176 | The C++ xrc lib has been moved out of contrib and into the core, so it |
177 | is always built by default. wxPython's build has also changed | |
178 | accordingly and will build the xrc module as part of the core set of | |
179 | modules built by default. If you were axplicitly using BUILD_XRC then | |
180 | it will no longer be recognized as a build option, otherwise you | |
181 | should notice no difference. | |
182 | ||
c0e1f6b6 RD |
183 | wxMac: Fixed radio toolbar buttons to correctly untoggle the others |
184 | when a new one is selected. | |
185 | ||
186 | wxMac: Fixed GetLineLength and GetLineText for MLTE text controls | |
187 | ||
188 | wxMac: wx.TaskBarIcon is implemented by allowing you to change the | |
189 | app's icon on the Dock and also specifying a menu that should be | |
190 | merged with the normal dock popup menu. See the MigrationGuide for | |
191 | more details and a warning. | |
192 | ||
193 | Added wx.TopLevelWindow.IsActive() which tells you if the frame or | |
194 | dialog is or containts the active window with the keyboard focus. | |
195 | ||
196 | Added ability to create a font based on pixel size rather than point | |
197 | size via the FontFromPixelSize constructor. | |
198 | ||
199 | Updated the Scintilla used by StyledTextCtrl to version 1.61 | |
200 | ||
201 | Improved image HitTest for TreeListCtrl. | |
202 | ||
203 | Added wx.App.IsMainLoopRunning. | |
204 | ||
205 | wxGTK: Make wxComboBox spit out a bit fewer surplus events when | |
206 | holding down the mouse button. | |
207 | ||
208 | wxGTK: Enable key based navigation through notebook tabs as in the | |
209 | native control with Left and right keys. Support for vetoing. | |
210 | ||
f54a36bb RD |
211 | FloatCanvas updates from Chris Barker |
212 | ||
213 | PyPlot updates from Gordon Williams: | |
214 | - Added bar graph demo | |
215 | - Modified line end shape from round to square. | |
b31cbeb9 RD |
216 | - Removed FloatDCWrapper for conversion to ints and ints in |
217 | arguments | |
218 | - Imported modules given leading underscore to name. | |
219 | - Added Cursor Line Tracking and User Point Labels. | |
220 | - Demo for Cursor Line Tracking and Point Labels. | |
221 | - Size of plot preview frame adjusted to show page better. | |
222 | - Added helper functions PositionUserToScreen and | |
223 | PositionScreenToUser in PlotCanvas. | |
224 | - Added functions GetClosestPoints (all curves) and GetClosestPoint | |
225 | (only closest curve) can be in either user coords or screen | |
226 | coords. | |
f54a36bb | 227 | |
f54a36bb RD |
228 | MaskedEdit updates from Will Sadkin: |
229 | - Added '*' mask char that means "all ansii chars" (ords 32-255) | |
230 | - Added proper unicode support to masked controls and wx.tools.dbg | |
231 | - Fixed two reported missing import bugs introduced by package | |
232 | creation | |
233 | - Converted masked package doc strings to reST format for better | |
234 | epydoc support | |
235 | - lots of doc string improvements and function hiding to better | |
236 | reflect package's public contents. | |
237 | ||
15513a80 RD |
238 | Restructured the installer packages slightly to help facilitate having |
239 | multiple versions of wxPython installed at the same time. See the | |
240 | Migrarion Guide for more information. | |
241 | ||
242 | Applied patch from Pim Van Heuven that modifies 4 files: | |
243 | - wxPython/demo/ListCtrl_edit.py (new demo) | |
244 | - wxPython/demo/Main.py (include new demo in demo app) | |
245 | - wxPython/wx/lib/mixins/listctrl.py (several improvements to | |
246 | TextEditMixin) | |
247 | - wxPython/wx/lib/wxpTag.py (some small fixes) | |
38b97c15 | 248 | |
f6f1e19f RD |
249 | Added (thanks to Kevin Ollivier!) wrappers for wx.WebKitCtrl for the |
250 | OSX build. Other platforms will raise an exception if you try to use | |
251 | it. | |
252 | ||
85245f48 RD |
253 | wxPython on OSX can now be built in Unicode mode, can support multiple |
254 | version installs, and comes with an uninstaller script. | |
255 | ||
256 | ||
4f5ff1b2 RD |
257 | |
258 | ||
3801d366 RD |
259 | |
260 | 2.5.2.8 | |
261 | ------- | |
262 | ||
b5f2d1f3 RD |
263 | Predominantly a bug-fix release. |
264 | ||
265 | * Fixed fatal error due to improper wrapping of wx.FSFile. | |
266 | ||
267 | * Fixed return type of EditableListBox.GetListCtrl | |
268 | ||
269 | * Give generic tree and list controls a DoGetBestSize so they play | |
270 | nicer with sizers when there is no minimal size. | |
271 | ||
272 | * Some tweaks in the demo and samples to correct layout, some | |
273 | flicker problems, and namespace use. | |
274 | ||
275 | * Add wx.Image.ConvertAlphaToMask | |
276 | ||
277 | * Minor corrections in wx.lib.dialogs | |
278 | ||
279 | * wx.FileHistory constructor now accepts the documented 2nd | |
280 | parameter. | |
281 | ||
282 | * Corrections for exceptions in the new ogl | |
283 | ||
284 | * Fixed XRCed to not use reparenting of windows to implement caching | |
285 | of property panels, since Reparent on wxMac is not implemented. | |
286 | ||
287 | * Add support for wxTAB_TRAVERSAL to the XRC handler for | |
288 | wxScrolledWindow. | |
289 | ||
290 | * Add support for all wxListBox styles to the XRC handler for | |
291 | wxCheckListBox. | |
292 | ||
293 | * Fix for wx.Listbook.DeleteAllPages to really delete everything. | |
294 | ||
295 | * wxGTK2 now supports alpha blended bitmap drawing | |
296 | ||
9c618512 RD |
297 | * Made wx.grid.Grid play nicer with sizers. |
298 | ||
b5f2d1f3 | 299 | * etc. |
3801d366 RD |
300 | |
301 | ||
302 | ||
303 | ||
e155ca47 | 304 | 2.5.2.7 |
95fed4d8 RD |
305 | ------- |
306 | ||
307 | wx.ADJUST_MINSIZE is now the default behaviour for window items in | |
ffcb969e RD |
308 | sizers. This means that the item's GetMinSize and/or GetBestSize will |
309 | be called when calculating layout and the return value from that will | |
cb8f28ba RD |
310 | be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE |
311 | flag was added that will cause the sizer to use the old behaviour in | |
312 | that it will *not* call the window's methods to determine the new best | |
313 | size, instead the minsize that the window had when added to the sizer | |
da2c7672 RD |
314 | (or the size the window was created with) will always be used. Please |
315 | see the Sizers section in the Migration Guide for more details. | |
cb8f28ba | 316 | |
c878ceea RD |
317 | Added new MaskedEditControl code from Will Sadkin. The modules are |
318 | now locaed in their own sub-package, wx.lib.masked. Demos updated. | |
319 | ||
d7403ad2 RD |
320 | The changes that implemented the incompatible wx.DC methods in 2.5.1.5 |
321 | have been reverted. The wx.DC methods are now compatible with the 2.4 | |
322 | implemetation. In addition a set of renamed methods have been added | |
323 | that take wx.Point and/or wx.Size objects instead of individual | |
324 | parameters. | |
325 | ||
5841276a RD |
326 | Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows |
327 | all columns of a wx.ListCtrl in report mode to be edited. | |
ba938c3d | 328 | |
165e6ca3 RD |
329 | Deprecated the wx.iewin module. |
330 | ||
331 | Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well | |
332 | as their Insert* and Prepend* counterparts. | |
333 | ||
969d9b6f RD |
334 | Added a generic StaticBitmap class in wx.lib.statbmp for the same |
335 | reasons that stattext was created, so it could be mouse sensitive on | |
336 | all platforms like normal windows. Also updated stattext.py and | |
337 | buttons.py to handle attribute (font & colour) defaults and | |
338 | inheritance the new way. If you have custom controls of your own you | |
339 | should review stattxt.py or one of the others to see how it is to be | |
340 | done. | |
165e6ca3 | 341 | |
a3150741 RD |
342 | wx.InitAllImageHandlers is now an empty function that does nothing but |
343 | exist for backwards compatibility. The C++ version is now called | |
344 | automatically when wxPython is initialized. Since all the handlers | |
345 | are included in the wxWidgets shared library anyway, this imposes only | |
346 | a very small amount of overhead and removes several unneccessary | |
347 | problems. | |
348 | ||
d1e05453 | 349 | Replaced wx/lib/pubsub.py with a version that uses weak references to |
89c876de RD |
350 | track the subscribers, plus other fixes/additions. Thanks go to |
351 | Oliver Schoenborn and Robb Shecter. | |
d1e05453 | 352 | |
89c876de RD |
353 | wxGTK now uses gtk_init_check so wxPython can raise an exception if |
354 | there is no DISPLAY available or other initializaion problem. | |
355 | ||
356 | wx.GetKeyState now has an implementation for wxGTK and is able to | |
357 | detect the up/down or toggle state of modifier and toggle keys. | |
358 | ||
359 | The LC_NUMERIC locale is now reset back to "C" (compatibility) when | |
360 | running on wxGTK to work around the fact that GTK requires the locale | |
361 | to be set to the system settings but Python depends on LC_NUMERIC | |
362 | remaining compatible with "C". | |
a3150741 | 363 | |
28eab81f RD |
364 | Switched gizmos.TreeListCtrl to the newer version of the code from the |
365 | wxCode project. | |
366 | ||
f847103a RD |
367 | OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side |
368 | leaked out there...) The wx.ogl module has been deprecated in favor | |
369 | of the new Python port of the OGL library located at wx.lib.ogl | |
370 |