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