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