]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/CHANGES.txt
bump subrelease
[wxWidgets.git] / wxPython / docs / CHANGES.txt
CommitLineData
73adcb01 1Recent Changes for wxPython
8eda5e35 2=====================================================================
6d75ea8f 3
ca8071ca 4
66b50a8f 52.5.3.3
ca8071ca
RD
6-------
7
7aada1e0 8wx.Sizer Add, Insert, and Prepend funcitons now return a reference to the
6b9f434e
RD
9wx.SizerItem that was added to the sizer, and the wx.SizerItem has a
10GetRect accessor to give the position of the item on the parent window.
7aada1e0
RD
11
12Added wx.Sizer.GetItem method which returns the wx.SizerItem for the given
13wx.Window, wx.Sizer or position index.
14
15wxMSW: wx.RadioButtons in the same group no longer have to be
16consecutive (there may be intervening controls). Without this fix, an
17out-of-sync assert is generated when clicking on a radio button and
18then calling GetValue().
19
20XRC:
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
25wxMSW: fix for [ 1052989 ] TextCtrl.SetBackgroundColour(wx.NullColour)
26bug.
27
28Added wx.PasswordEntryDialog analagous to wx.TextEntryDialog, allows
29detecting entering an empty string vs. cancel unlike the
30wx.GetPasswordFromUser dialog function.
31
32
ca8071ca
RD
33OGL 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
52Fixed GetSaveData and SetSaveData in wx.lib.multisash to not depend on
53the default way that class objectss are converted to strings.
ca8071ca 54
7aada1e0
RD
55Fixed problem in StyledTextCtrl.Set[H|V]ScrollBar that could leave the
56internal scrollbar visible.
57
58Added wx.StandardPaths which provides methods for determining standard
59system paths for each platform.
60
61
62
ca8071ca
RD
63
64
0dece789 652.5.3.1
4f5ff1b2
RD
66-------
67
68wxMac focus and border refreshes corrected.
69
70Updated internal PNG library.
71
72wxMac fix for metal appearance on wx.ToolBar.
73
74wx.grid.Grid fix allowing DoGetBestSize to be called before CreateGrid
75(which means that a min size doesn't need to be specified.)
76
77wxMac fix for not sending a native click to a control if it is not
78enabled (does an enable itself)
79
31b46829
RD
80Added wx.lib.ogl.DrawnShape, and fixed various little bugs in the new
81OGL.
4f5ff1b2
RD
82
83Added support to XRC and XRCed for the 3-state checkbox flags and also
84for wx.ToggleButton. Updated the generic window styles supported by
85XRCed.
86
87It is now possible to create "stock" buttons. Basically this means
71e60f70
RD
88that you only have to provide one of the stock IDs (and either an
89empty label or a label that matches the stock label) when creating the
90button and wxWidgets will choose the stock label to go with it
91automatically. Additionally on the platforms that have a native
92concept of a stock button (currently only GTK2) then the native stock
93button will be used. For example, the following will result in a
94button with "Cancel" as the label and an accelerator on the "C", and
95if 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
100Added wx.lib.ticker.Ticker class from Chris Mellon.
101
71e60f70
RD
102Fix some incorrect clipping regions in wxSTC on wxGTK.
103
104Added wrapper for wx.grid.Grid.GetOrCreateCellAttr.
105
11908acc
RD
106Removed my copy of distutils from the wxPython source tree. Now that
107I am no longer doing builds on Python 2.1 the newest distutils is no
108longer needed. (There is still one small bug in Python 2.2 distutils
109on win32, but it is easily worked around.) This sovles the problem of
110incorrect builds on some systems where the system installed distutils
111has been patched to behave slightly differently, for example SuSE on
112x86_64 or Chandler's build.
113
da72c540
RD
114Updated to SWIG 1.3.22 (plus my patch.) See wxPython/SWIG/README.txt
115in the source tree if you need to use SWIG when building your own copy
116of wxPython, or other extension modules that need to integrate with
117the wxPython modules.
118
6afcb800
RD
119Added wx.Frame.RequestUserAttention which, if the platform suports it,
120will do something (such as flash the task bar item) to suggest to the
121user that they should look at that window.
122
31b46829
RD
123"Fixed" wx.grid.Grid.SetDefaultEditor and SetDefaultRenderer by making
124them register the editor or renderer for the "string" data type.
125
126Added depth param to wx.Image.ConvertToBitmap.
127
128Extended the wx.calendar.CalendarCtrl class with methods that get/set
129a Python datetime or date object. (These will only work with Python
1302.3+) The methods are PySetDate, PyGetDate, PySetLowerDateLimit,
131PySetUpperDateLimit, PySetDateRange, PyGetLowerDateLimit, and
5f13b2ca
RD
132PyGetUpperDateLimit. Also, CalendarEvent was extended with PySetDate
133and PyGetDate methods.
31b46829 134
6c3f6fe9
RD
135wxMSW: SetBackgroundColour on a wx.Choice or a wx.ComboBox will now
136also set the colour of the dropdown.
137
8dca2f3d
RD
138wxMac: MessageDialog now supports wx.NO_DEFAULT style
139
140wxMSW: added AssociateHandle and DissociateHandle to wx.Window
141
142wxMac: fix for toolbar tooltips
143
144wx.Sizer.Show (and Hide) now take an optional parameter specifying if
145the item to be shown should be searched for recursivly in subsizers,
146and return a boolean value indicating if the item was found.
147
96d49f0e
RD
148wxMSW: fixed MaximizeEvent generation in wx.Frame
149
150wxMSW: fixed sending duplicate EVT_COMBOBOX events
151
152Smoother time estimation updates in wx.ProgressDialog (patch 992813)
153
154Made wx.Listbook events more consistent with wx.Notebook ones (patch
1551001271)
156
157Fixed rounding errors in variable status bar panes widths computation
158(patch 1030021)
159
160Added possibility to specify printer bin (patch 910272)
161
162wxMSW: fixed wx.ListCtrl's SetWindowStyleFlag() to not remove
163WS_VISIBLE; also refresh the control automatically (closes bug
1641019440)
165
166Added wx.Choicebook, yet another notebook-like control.
167
168wxMSW: Make radiobutton tab behaviour the same on MSW as in standard
169MSW app, i.e. tab into the activated, not necessarily the first radio
170button.
171
172Added limited support for wxEventLoop (you can't derive from a
173wx.PyEventLoop version yet...) Updated and moved the sample showing
174how to replace the MainLoop to samples/mainloop/mainloop.py.
8dca2f3d 175
38b97c15
RD
176The C++ xrc lib has been moved out of contrib and into the core, so it
177is always built by default. wxPython's build has also changed
178accordingly and will build the xrc module as part of the core set of
179modules built by default. If you were axplicitly using BUILD_XRC then
180it will no longer be recognized as a build option, otherwise you
181should notice no difference.
182
c0e1f6b6
RD
183wxMac: Fixed radio toolbar buttons to correctly untoggle the others
184when a new one is selected.
185
186wxMac: Fixed GetLineLength and GetLineText for MLTE text controls
187
188wxMac: wx.TaskBarIcon is implemented by allowing you to change the
189app's icon on the Dock and also specifying a menu that should be
190merged with the normal dock popup menu. See the MigrationGuide for
191more details and a warning.
192
193Added wx.TopLevelWindow.IsActive() which tells you if the frame or
194dialog is or containts the active window with the keyboard focus.
195
196Added ability to create a font based on pixel size rather than point
197size via the FontFromPixelSize constructor.
198
199Updated the Scintilla used by StyledTextCtrl to version 1.61
200
201Improved image HitTest for TreeListCtrl.
202
203Added wx.App.IsMainLoopRunning.
204
205wxGTK: Make wxComboBox spit out a bit fewer surplus events when
206holding down the mouse button.
207
208wxGTK: Enable key based navigation through notebook tabs as in the
209native control with Left and right keys. Support for vetoing.
210
f54a36bb
RD
211FloatCanvas updates from Chris Barker
212
213PyPlot 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
228MaskedEdit 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
238Restructured the installer packages slightly to help facilitate having
239multiple versions of wxPython installed at the same time. See the
240Migrarion Guide for more information.
241
242Applied 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
249Added (thanks to Kevin Ollivier!) wrappers for wx.WebKitCtrl for the
250OSX build. Other platforms will raise an exception if you try to use
251it.
252
85245f48
RD
253wxPython on OSX can now be built in Unicode mode, can support multiple
254version installs, and comes with an uninstaller script.
255
256
4f5ff1b2
RD
257
258
3801d366
RD
259
2602.5.2.8
261-------
262
b5f2d1f3
RD
263Predominantly 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 3042.5.2.7
95fed4d8
RD
305-------
306
307wx.ADJUST_MINSIZE is now the default behaviour for window items in
ffcb969e
RD
308sizers. This means that the item's GetMinSize and/or GetBestSize will
309be called when calculating layout and the return value from that will
cb8f28ba
RD
310be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE
311flag was added that will cause the sizer to use the old behaviour in
312that it will *not* call the window's methods to determine the new best
313size, 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
315see the Sizers section in the Migration Guide for more details.
cb8f28ba 316
c878ceea
RD
317Added new MaskedEditControl code from Will Sadkin. The modules are
318now locaed in their own sub-package, wx.lib.masked. Demos updated.
319
d7403ad2
RD
320The changes that implemented the incompatible wx.DC methods in 2.5.1.5
321have been reverted. The wx.DC methods are now compatible with the 2.4
322implemetation. In addition a set of renamed methods have been added
323that take wx.Point and/or wx.Size objects instead of individual
324parameters.
325
5841276a
RD
326Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
327all columns of a wx.ListCtrl in report mode to be edited.
ba938c3d 328
165e6ca3
RD
329Deprecated the wx.iewin module.
330
331Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well
332as their Insert* and Prepend* counterparts.
333
969d9b6f
RD
334Added a generic StaticBitmap class in wx.lib.statbmp for the same
335reasons that stattext was created, so it could be mouse sensitive on
336all platforms like normal windows. Also updated stattext.py and
337buttons.py to handle attribute (font & colour) defaults and
338inheritance the new way. If you have custom controls of your own you
339should review stattxt.py or one of the others to see how it is to be
340done.
165e6ca3 341
a3150741
RD
342wx.InitAllImageHandlers is now an empty function that does nothing but
343exist for backwards compatibility. The C++ version is now called
344automatically when wxPython is initialized. Since all the handlers
345are included in the wxWidgets shared library anyway, this imposes only
346a very small amount of overhead and removes several unneccessary
347problems.
348
d1e05453 349Replaced wx/lib/pubsub.py with a version that uses weak references to
89c876de
RD
350track the subscribers, plus other fixes/additions. Thanks go to
351Oliver Schoenborn and Robb Shecter.
d1e05453 352
89c876de
RD
353wxGTK now uses gtk_init_check so wxPython can raise an exception if
354there is no DISPLAY available or other initializaion problem.
355
356wx.GetKeyState now has an implementation for wxGTK and is able to
357detect the up/down or toggle state of modifier and toggle keys.
358
359The LC_NUMERIC locale is now reset back to "C" (compatibility) when
360running on wxGTK to work around the fact that GTK requires the locale
361to be set to the system settings but Python depends on LC_NUMERIC
362remaining compatible with "C".
a3150741 363
28eab81f
RD
364Switched gizmos.TreeListCtrl to the newer version of the code from the
365wxCode project.
366
f847103a
RD
367OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
368leaked out there...) The wx.ogl module has been deprecated in favor
369of the new Python port of the OGL library located at wx.lib.ogl
370