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