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