]>
Commit | Line | Data |
---|---|---|
6d75ea8f RD |
1 | CHANGES.txt for wxPython |
2 | ||
3 | ---------------------------------------------------------------------- | |
4 | ||
19cf4f80 RD |
5 | ????? |
6 | ----- | |
7 | Removed initial startup dependency on the OpenGL DLLs so only the | |
8 | glcanvasc.pyd depends on them. | |
9 | ||
10 | Changed wxFont, wxPen, wxBrush to not implicitly use the | |
11 | wxThe[Font|Pen|Brush]List behind the scenes, but to use normal ctor | |
12 | and dtors. | |
13 | ||
14 | Exposed the wxThe[Font|Pen|Brush]List to wxPython. | |
15 | ||
1af9e5c5 | 16 | Also added wxTheColourDatabase and added a library module (in the |
19cf4f80 RD |
17 | wxPython.lib.colourdb module) to load LOTS more colour names into the |
18 | colour database. | |
19 | ||
6e18ca6c RD |
20 | Added wxWakeUpMainThread, wxMutexGuiEnter, wxMutexGuiLeave, |
21 | wxMutexGuiLocker and wxThread_IsMain to assist with dealing with GUI | |
22 | access from non-GUI threads. | |
23 | ||
1af9e5c5 RD |
24 | wxPyOnDemandOutputWindow is now (more) thread safe if non-GUI threads |
25 | use print, sys.stdout.write, etc. | |
6e18ca6c | 26 | |
6bb38ab6 RD |
27 | Added CreateTextSizer and CreateButtonSizer to wxDialog |
28 | ||
6bb38ab6 RD |
29 | Added wxPython/lib/infoframe.py from Chris Fama. It contains a class |
30 | that can be used in place of wxPyOnDemandOutputWindow. | |
31 | ||
49875c53 RD |
32 | Added colourselect.py, imagebrowser.py and an updated calendar.py to |
33 | wxPython/lib from Lorne White. | |
34 | ||
e0672e2f RD |
35 | Added patch to wxPoint_LIST_helper from Tim Hochberg that should make |
36 | it gobs faster in certain situations. | |
6bb38ab6 | 37 | |
1af9e5c5 RD |
38 | Added tools that will take an image file in a wx supported format and |
39 | convert it to data embedded in a Python source file. The image is | |
40 | converted to XPM format (with its transparency mask intact, if there | |
41 | is one) which is essentially a list of strings containing info about | |
42 | each pixel. It is then pickled and optionally compressed and written | |
43 | to a Python source file along with functions to convert it to either a | |
44 | wxBitmap or a wxImage. See wxPython/demo/images.py for examples, and | |
d7ec6564 | 45 | wxPython/Tools/img2py.py for the implementation. |
1af9e5c5 RD |
46 | |
47 | Fixed wxStyledTextCtrl to be much faster on wxGTK. There was some | |
48 | experimental code that got left in place that ended up causing way too | |
49 | many refreshes. | |
50 | ||
d1679124 RD |
51 | A couple more hacks in my_distutils.py so wxPython can be built with |
52 | the distutils that comes with Python 2.1. | |
1af9e5c5 | 53 | |
d7ec6564 | 54 | Added a ton of missing methods for wxPrintData. |
1af9e5c5 | 55 | |
d7ec6564 | 56 | Switched to InnoSetup for MSW distributions. |
19cf4f80 | 57 | |
3b36695d RD |
58 | Added wxToggleButton. |
59 | ||
60 | Fixed bug that prevented wxTreeCtrl.OnCompareItems from being called. | |
d1679124 RD |
61 | |
62 | ||
19cf4f80 RD |
63 | |
64 | ||
b075a3bb RD |
65 | 2.2.6 |
66 | ----- | |
67 | ||
68 | No changes happened in the Python wrappers for this release, only | |
69 | changes and fixes in the wxWindows library. | |
70 | ||
1b62f00d | 71 | |
19cf4f80 | 72 | |
1b62f00d | 73 | 2.2.5 |
185d7c3e RD |
74 | ----- |
75 | ||
76 | New typemaps for wxString when compiling for Python 2.0 and beyond | |
77 | that allow Unicode objects to be passed as well as String objects. If | |
78 | a Unicode object is passed PyString_AsStringAndSize is used to convert | |
79 | it to a wxString using the default encoding. | |
80 | ||
81 | Fixed the generic buttons so tool tips work for them. | |
82 | ||
83 | Fixed a bug in the demo's tree control. | |
84 | ||
85 | Added a listbox to the listbox demo that shows how to find items with | |
1e7ecb7b | 86 | a matching prefix as keys are typed. |
185d7c3e RD |
87 | |
88 | Added code to the wxListCtrl demo to show how to get text from a | |
89 | column in report mode. | |
90 | ||
91 | Added code to the toolbar demo to clear the long help from the status | |
92 | bar after 2 seconds. | |
93 | ||
94 | Added wxJoystick. | |
95 | ||
96 | Fixed wxTimer so it can be used as described in the docs, either with | |
97 | a Notify method in a subclass, or sending an event to a wxEvtHandler | |
98 | object, (usually a window.) | |
99 | ||
100 | Added wxNotifyEvent.Allow() | |
101 | ||
de20db99 RD |
102 | Fixed GOBS of reference leaks. |
103 | ||
1e7ecb7b RD |
104 | Massive code changes and cleanup to allow wxPython to be split into |
105 | multiple extension modules again. A Python CObject is used to allow | |
1b62f00d RD |
106 | the "export" of SWIG functions and other common helper functions from |
107 | the wxc module to other modules, even if they are in separate shared | |
1e7ecb7b RD |
108 | libraries. Should also be usable from 3rd party code, just include |
109 | wxPython/src/export.h | |
110 | ||
111 | Changed the default setup so the following are built as separate | |
112 | extension modules: calendar, glcanvas, grid, html, ogl, stc, and | |
113 | utils. Will probably add more later. | |
114 | ||
1b62f00d RD |
115 | Changed the wxPrinterDC to use the new constructor taking a |
116 | wxPrintData object. The old ctor is still there using the | |
117 | wxPrinterDC2 name. | |
118 | ||
119 | Added wxPython.lib.anchors.py from Riaan Booysen. It contains a class | |
120 | that implements Delphi's Anchors with wxLayoutConstraints. | |
121 | ||
122 | Added wxPython.lib.fancytext from Timothy Hochberg. | |
123 | ||
124 | Changed the GenericButtons to send their event in idle time, so the | |
125 | mouse won't be captured when the event handler is called. | |
126 | ||
127 | Added wxPython.lib.rpcMixin from Greg Landrum, although it's not | |
128 | integrated with the demo yet. It allows a wxPython GUI to be an | |
129 | XML-RPC server. | |
130 | ||
185d7c3e RD |
131 | |
132 | ||
c368d904 RD |
133 | New in 2.2.2 |
134 | ------------ | |
135 | ||
136 | Significantly changed how the wxStyledtextCtrl code that wraps | |
137 | Scintilla is implemented. Most of it is now automatically generated | |
138 | from an interface definition file provided by Scintilla. This means | |
139 | that it will be much easier to stay in sync with new Scintilla | |
140 | releases, but also means that some of the method and identifier names | |
141 | have changed. See wxPython/demo/data/stc.h for a copy of the C++ | |
142 | interface from which the Python interface is generated. There is now | |
143 | some inline documentation in that file that should really help explain | |
144 | how things work. | |
145 | ||
146 | I am now using the Python Distutils to build wxPython and to make some | |
147 | of the distribution files. (See http://www.python.org/sigs/distutils-sig/) | |
148 | This means no more messing with my kludgy build.py/Makefile hack, | |
149 | builds will be more consistent with other Python extensions that also | |
150 | use Distutils, and will hopefully make wxPython easier to build for | |
151 | platforms where there have been troubles before. If you are building | |
152 | wxPython for Python 1.5.2 or for 1.6, then you will need to get and | |
153 | install version 1.0 of Distutils from the website above. If you are | |
154 | using Python 2.0 then you already have it. | |
155 | ||
156 | Added wxInputStream and the wxFileSystem family of classes, | |
157 | contributed by Joerg Baumann. | |
158 | ||
159 | Added wxProcess and support for it to wxExecute. wxProcess lets you | |
160 | get notified when an asyncronous child process terminates, and also to | |
161 | get input/output streams for the child process's stdout, stderr and | |
162 | stdin. | |
163 | ||
164 | Removed the old python sizers. | |
165 | ||
166 | Added __add__, __sub__ and __cmp__ (equality check only) for wxPoint | |
167 | and wxRealPoint. | |
168 | ||
169 | Changed the build to make one big extension module instead of one for | |
170 | the core and each contrib. This allowed me to do away with the | |
171 | libwxPyHelpers.so on unix systems. | |
172 | ||
173 | Lots of little fixes here and there. | |
174 | ||
175 | Some hacks on wxGTK to try and make the AutoComplete listbox in the | |
176 | wxStyledTextCtrl to behave better. It's still not as nice as on | |
177 | wxMSW, but at least it's a bit more usable now. | |
178 | ||
179 | ||
180 | ||
181 | ||
3ca6a5f0 BP |
182 | New in 2.2.1 |
183 | ------------ | |
184 | ||
185 | Various tweaks, fixes, missing methods, etc. | |
186 | ||
c368d904 RD |
187 | Added example use of wxTaskBarIcon to the demo. |
188 | ||
3ca6a5f0 BP |
189 | |
190 | ||
f6bcfd97 BP |
191 | New in 2.2.0 |
192 | ------------ | |
193 | ||
194 | Added wxLog and friends. | |
195 | ||
196 | Added wxFrame.ShowFullScreen for MSW. | |
197 | ||
198 | Added PyShellWindow to the wxPython.lib package. | |
199 | ||
200 | ||
201 | ||
202 | New in 2.1.16 | |
203 | ------------- | |
204 | ||
205 | Added an attribute named labelDelta to the generic buttons that | |
206 | specifies how far to offset the label when the button is in the | |
207 | depressed state. | |
208 | ||
209 | Added wxTipProvider and friends. See the demo for an example. | |
210 | ||
211 | wxGrid can now change the cell highlight colour. | |
212 | ||
213 | Added wxDragImage. | |
214 | ||
215 | Fixed printing on wxGTK. | |
216 | ||
217 | Added wxDateTime, wxTimeSpan, and wxDateSpan to wxPython.utils. | |
218 | ||
219 | Added wxCalendarCtrl. | |
220 | ||
221 | WARNING: A while back I asked what should be done about the Magic | |
222 | Method Names. (Methods that are automatically turned into event | |
223 | handlers by virtue of their name.) The consensus was that it is more | |
224 | confusing to have them than to try and expand them to have greater | |
225 | coverage. I am finally getting around to removing the code that | |
226 | generates the event binding. This means that if you are using any of | |
227 | the following method names without a EVT_* call that you need to | |
228 | modify your code to add the EVT_* to hook the event to the method. | |
229 | ||
230 | OnChar | |
231 | OnSize | |
232 | OnEraseBackground | |
233 | OnSysColourChanged | |
234 | OnInitDialog | |
235 | OnPaint | |
236 | OnIdle | |
237 | OnActivate | |
238 | OnMenuHighlight | |
239 | OnCloseWindow | |
240 | OnScroll | |
241 | ||
242 | Added wxSpinCtrl. | |
243 | ||
244 | ||
245 | ||
246 | ||
247 | New in 2.1.15 | |
164b735b RD |
248 | ------------- |
249 | ||
250 | Fixed wxTreeCtrl.HitTest to return both the tree item as well as the | |
251 | flags that clairify where the click was in relation to the item. | |
252 | ||
854862f5 RD |
253 | Fixed thread state problem in wxTreeCtrl.GetBoundingBox and |
254 | GetSelections. | |
164b735b | 255 | |
99ab9f3b RD |
256 | Fixed some problems in OGL. Also wxShape.SetClientData and |
257 | .GetClientData can now deal with Python objects. | |
714d23b4 | 258 | |
dcd38683 | 259 | Added wxListCtrl.SortItems and changed the demo to show how to use it. |
714d23b4 | 260 | |
f6bcfd97 BP |
261 | Plugged a memory leak. |
262 | ||
263 | Wrapped the new wxGrid and friends. The old wxGrid class is no longer | |
264 | available. There are some incompatibilities, and unfortunately the | |
265 | new classes are not documented yet, (however the methods are more | |
266 | consistent with each other now so you may be able to guess pretty | |
267 | good...) | |
268 | ||
269 | Updated filebrowsebutton.py and calendar.py with changes from their | |
270 | authors. There is now a FileBrowseButtonWithHistory class (what a | |
271 | mouthful!) and wxCalendar has printing support. | |
272 | ||
273 | Added ActiveXWrapper to the library, and some good demos of it too. | |
274 | It works great for embedding a COM (a.k.a OCX, a.k.a ActiveX) control | |
275 | in a window and calling its methods. It actually creates a new class | |
276 | on the fly that derives from wxWindow, the COM CoClass and others | |
277 | needed to make it all work. The resulting class can be instantiated | |
278 | just like wxWindow, used in sizers, etc. It also responds to all COM | |
279 | method calls, properties, etc., and if the class or a mix-in has | |
280 | matching method names, then the COM events will be propogated back to | |
281 | them. | |
282 | ||
283 | Created a typemap that allows a string to be used for parameters | |
284 | expecting a wxColour type. The string is either a colour name as | |
285 | defined in the wxColourDatabase, or a colour spec of the form | |
286 | "#RRGGBB". See the wxStyledTextCtrl demo for an example. | |
287 | ||
288 | I almost forgot to mention the wxStyledTextCtrl! Yes, the | |
289 | wxStyledTextCtrl is finally in wxPython!! (And the crowd goes | |
290 | wild...) There's no documentaTion yet (the crowd boos and hisses...) | |
291 | but I've included a very readable source file in the | |
292 | wxPython/demo/data directory, a couple fairly good examples, and you | |
293 | can also refer to the Scintilla documentaion at | |
294 | http://www.scintilla.org/ScintillaDoc.html to help fill in the gaps | |
295 | until the docs are done. (The croud murmers contentedly as the tool | |
296 | provider smiles convincingly and removes his flame-proof suit.) | |
297 | ||
164b735b RD |
298 | |
299 | ||
300 | ||
9e57c2a0 | 301 | What's new in 2.1.13 |
6d75ea8f | 302 | -------------------- |
9e57c2a0 RD |
303 | Skipped a version number to match what has been released for wxGTK. |
304 | ||
6d75ea8f RD |
305 | Updated wxMVCTree and added a demo for it, also fixed layout on GTK |
306 | and some flicker problems. | |
307 | ||
308 | Added a wrapper class for the Visualization ToolKit (or VTK) in the | |
309 | wxPython.lib.vtk module. (http://www.kitware.com/) | |
310 | ||
311 | Fixed wxTreeCtrl.SetItemImage and GetItemImage to recognise the new | |
312 | "which" parameter. | |
313 | ||
314 | Added wxPython.lib.spashscreen from Mike Fletcher. | |
315 | ||
316 | Added wxPython.lib.filebrowsebutton also from Mike Fletcher. | |
317 | ||
318 | Renamed wxTreeCtrl.GetParent to GetItemParent to avoid a name clash | |
319 | with wxWindow.GetParent. | |
320 | ||
321 | Added wxIntersectRect to compute the intersection of two wxRect's. | |
322 | It is used like this: | |
323 | ||
324 | intersect = wxIntersectRect(rect1, rect2) | |
325 | ||
326 | If r1 and r2 don't intersect then None is returned, otherwise the | |
327 | rectangle representing the intersection is returned. | |
328 | ||
329 | Some bug fixes for Clipboard and Drag-n-Drop. | |
330 | ||
9b3d3bc4 | 331 | Rotated text!!! WooHoo! (See wxDC.DrawRotatedText()) |
6999b0d8 RD |
332 | |
333 | Added a set of Generic Buttons to the library. These are simple | |
334 | window classes that look and act like native buttons, but you can have | |
335 | a bit more control over them. The bezel width can be set in addition | |
336 | to colours, fonts, etc. There is a ToggleButton as well as Bitmap | |
9e57c2a0 RD |
337 | versions too. They should also serve as a good example of how to |
338 | create your own classes derived from wxControl. | |
6d75ea8f | 339 | |
9b3d3bc4 RD |
340 | The C++ wxToolBar classes have been redone, and so have the wxPython |
341 | wrappers. There have been slight modifications to some of the methods | |
342 | but shouldn't impact anybody too much. I took the opportunity to add | |
343 | support for setting user data on each toolbar tool. The new AddTool | |
344 | methods look like this: | |
345 | ||
346 | def AddTool(ID, | |
347 | bitmap, | |
348 | pushedBitmap = wxNullBitmap, | |
349 | toggle = FALSE, | |
350 | clientData = NULL, | |
351 | shortHelpString = "", | |
352 | longHelpString = "") | |
353 | ||
354 | def AddSimpleTool(ID, | |
355 | bitmap, | |
356 | shortHelpString = "", | |
357 | longHelpString = "", | |
358 | toggle=FALSE) | |
359 | ||
360 | ||
361 | There are also coresponding InsertTool and InsertSimpleTool methods | |
362 | that additionally take an integer position as the first parameter. | |
363 | ||
9e57c2a0 | 364 | Added a wrapper for the new PCX and TIFF ImageHandlers. |
9b3d3bc4 RD |
365 | |
366 | wxRect now simulates attributes named left, right, top and bottom. | |
367 | ||
d2103cf2 RD |
368 | Removed all non wx stuff from the glcanvas module since DA's PyOpenGL |
369 | is better and compatible with the wxGLCanvas. You can get it at | |
370 | http://starship.python.net:9673/crew/da/Code/PyOpenGL. | |
9b3d3bc4 | 371 | |
3af4e610 | 372 | Added some missing EVT_ functions. |
9b3d3bc4 | 373 | |
1b55cabf RD |
374 | Added Dirk Holtwic's editor classes to the wxPython.lib.editor |
375 | package. | |
376 | ||
eec92d76 RD |
377 | Changed all the "LIST" parameter names to "choices" to match the docs. |
378 | ||
fe366bc9 RD |
379 | More fixes for the wxFloatBar, and it now works on wxGTK even better |
380 | than wxMSW! (The feat is accomplished by using the wxTB_DOCKABLE | |
381 | style flag instead of trying to float it ourselves.) | |
382 | ||
9b3d3bc4 | 383 | |
6d75ea8f RD |
384 | |
385 | ||
386 | What's new in 2.1.11 | |
387 | -------------------- | |
388 | Skipped a few version numbers so wxMSW, wxGTK and wxPython are all | |
389 | syncronized. | |
390 | ||
391 | wxImage.SetData now makes a copy of the image data before giving it to | |
392 | wxImage. I mistakenly thought that wxImage would copy the data | |
393 | itself. | |
394 | ||
395 | Fixed wxMSW's notebook so the pages get their size set as they are | |
396 | being added. This should remove the need for our | |
397 | wxNotebook.ResizeChildren hack. | |
398 | ||
399 | wxPanels now support AutoLayout, and wxNotebooks and wxSplitterWindows | |
400 | no longer tell their children to Layout() themselves. This will | |
401 | probably only effect you if you have a wxWindow with AutoLayout inside | |
402 | a notebook or splitter. If so, either change it to a wxPanel or add | |
403 | an EVT_SIZE handler that calls Layout(). | |
404 | ||
405 | Fixed deadlock problem that happened when using threads. | |
406 | ||
407 | Added new HTML printing classes. | |
408 | ||
409 | Added wxWindow.GetHandle | |
410 | ||
411 | Apparently wxMouseEvent.Position has been depreciated in wxWindows as | |
412 | it is no longer available by default. You can use GetPositionTuple | |
413 | (returning a tuple with x,y) instead, or GetPosition (returning a | |
414 | wxPoint.) | |
415 | ||
416 | Added wxPostEvent function that allows events to be posted and then | |
417 | processed later. This is a thread-safe way to interact with the GUI | |
418 | thread from other threads. | |
419 | ||
420 | Added Clipboard and Drag-and-Drop classes. | |
421 | ||
422 | Added wxFontEnumerator. | |
423 | ||
424 | Many updates to wxMenu, wxMenuBar. | |
425 | ||
426 | wxPyEvent and wxPyCommandEvent derived classes now give you the actual | |
427 | Python object in the event handler instead of a new shadow. | |
428 | ||
429 | Added a Calendar widget from Lorne White to the library. | |
430 | ||
431 | Made some fixes to the wxFloatbar. It still has some troubles on | |
432 | wxGTK... | |
433 | ||
434 | Added an MVC tree control from Bryn Keller to the library. | |
435 | ||
436 | ||
437 | ||
438 | ||
439 | What's new in 2.1.5 | |
440 | ------------------- | |
441 | This is a quick bug-fix release to take care of a few nasties that | |
442 | crept in at the last minute before 2.1.4 was called done. No new | |
443 | major features. | |
444 | ||
445 | ||
446 | ||
447 | What's new in 2.1.4 | |
448 | -------------------- | |
449 | ||
450 | This release is NOT syncronized with a snapshot release of wxGTK or | |
451 | wxMSW. For MSW this isn't much of a problem since you can get the | |
452 | binaries from the web site. For other platforms you'll have to build | |
453 | wxGTK from CVS. (See http://web.ukonline.co.uk/julian.smart/wxwin/cvs.htm) | |
454 | To get the same set of sources from CVS that I used, checkout using | |
455 | the wxPy-2-1-4 tag. | |
456 | ||
457 | Now back to what's new... | |
458 | ||
459 | Much more support for event-less callbacks and add-on modules. | |
460 | ||
461 | Created add-on module with wxOGL classes. | |
462 | ||
463 | Added wxWindow.GetChildren(). Be careful of this. It returns a *copy* | |
464 | of the list of the window's children. While you are using the list if | |
465 | anything changes in the real list (a child is deleted, etc.) then the | |
466 | list you are holding will suddenly have window references to garbage | |
467 | memory and your app will likely crash. But if you are careful it works | |
468 | great! | |
469 | ||
470 | Added a bunch of new and missing methods to wxTreeCrtl. The | |
471 | SortChildren method is now supported, but currently only for the | |
472 | default sort order. | |
473 | ||
474 | Added typemaps for wxSize, wxPoint, wxRealPoint, and wxRect that allow | |
475 | either the actual objects or Python sequence values to be used. For | |
476 | example, the following are equivallent: | |
477 | ||
478 | win = wxWindow(parent, size = wxSize(100, 100)) | |
479 | win = wxWindow(parent, size = (100, 100)) | |
480 | ||
481 | Super-charged the wxHtml module. You can now create your own tag | |
482 | handlers and also have access to the parser and cell classes. There | |
483 | is a tag handler in the library at wxPython.lib.wxpTag that | |
484 | understands the WXP tag and is able to place wxPython windows on HTML | |
485 | pages. See the demo for an example. | |
486 | ||
487 | A bunch of the methods of wxMenuBar were previously ifdef'd out for | |
488 | wxGTK. Added them back in since the methods exist now. | |
489 | ||
490 | Wrapped the wxHtmlHelpController and related classes. | |
491 | ||
492 | Wrapped the C++ versions of wxSizer and friends. The Python-only | |
493 | versions are still in the library, but depreciated. (You will get a | |
494 | warning message if you try to use them, but the warning can be | |
495 | disabled.) The usage of the C++ versions is slightly different, and | |
496 | the functionality of wxBorderSizer is now part of wxBoxSizer. I have | |
497 | added a few methods to wxSizer to try and make the transition as | |
498 | smooth as possible, I combined all Add methods into a single method | |
499 | that handles all cases, added an AddMany method, etc. One step I did | |
500 | not take was to make the default value of flag in the Add method be | |
501 | wxGROW. This would have made it more backward compatible, but less | |
502 | portable to and from wxWin C++ code. Please see the docs and demo for | |
503 | further details. | |
504 | ||
505 | Added wxPyEvent and wxPyCommandEvent classes, derived from wxEvent and | |
506 | wxCommandEvent. Each of them has SetPyData and GetPyData methods that | |
507 | accept or return a single Python object. You can use these classes | |
508 | directly or derive from them to create your own types of event objects | |
509 | that can pass through the wxWindows event system without loosing their | |
510 | Python parts (as long as they are stored with SetPyData.) Stay tuned | |
511 | for more info and examples in future releases. | |
512 | ||
513 | Added wxPython.lib.grids as an example of how to derive a new sizer | |
514 | from the C++ sizers. In this module you will find wxGridSizer and | |
515 | wxFlexGridSizer. wxGridSizer arrainges its items in a grid in which | |
516 | all the widths and heights are the same. wxFlexgridSizer allows | |
517 | different widths and heights, and you can also specify rows and/or | |
518 | columns that are growable. See the demo for a couple examples for how | |
519 | to use them. | |
520 | ||
521 | Added the wxValidator class, and created a class named wxPyValidator | |
522 | that should be used for the base class of any Python validators. See | |
523 | the demo for an example. Please note that you MUST implement a Clone | |
524 | method in your validator classes because of the way some things work | |
525 | in the underlying C++ library. I did not add wxTextValidator because | |
526 | of some issues of how it transfers data to and from a wxString, which | |
527 | in wxPython is automatically translated to and from Python strings, so | |
528 | there would never be a concrete wxString that would hang around long | |
529 | enough for the validator to do its job. On the other hand, it should | |
530 | be real easy to duplicate the functionality of wxTextValidator in a | |
531 | pure Python class derived from wxPyValidator. | |
532 | ||
533 | I've finally added a feature that has been on my list for close to two | |
534 | years! Ever wondered what that zero is for when you create your app | |
535 | object? Well now you can leave it out or explicitly set it to a true | |
536 | value. This value now controls what is to be done with sys.stdout and | |
537 | sys.stderr. A false value leaves them alone, and a true value sets | |
538 | them to an instance of wxPyOnDemandOutputWindow. (On windows the | |
539 | default is true, on unix platforms the default is false.) This class | |
540 | creates a frame containing a wxTextCtrl as soon as anything is written | |
541 | to sys.stdout or sys.stderr. If you close the window it will come | |
542 | back again the next time something is written. (You can call | |
543 | app.RestoreStdio to turn this off.) If you would rather that the stdio be | |
544 | redirected to a file, you can provide a second parameter to your app | |
545 | object's constructor that is a filename. If you want to use your own | |
546 | class instead of wxPyOnDemandOutputWindow you can either implement | |
547 | RedirectStdio() in you app class or change the value of | |
548 | wxApp.outputWindowClass like this: | |
549 | ||
550 | class MyApp(wxApp): | |
551 | outputWindowClass = MyClass | |
552 | ||
553 | def OnInit(self): | |
554 | frame = MyFrame() | |
555 | self.SetTopWindow(frame) | |
556 | return true | |
557 | ||
558 | Please see the implementation of wxPyOnDemandOutputWindow and wxApp in | |
559 | wx.py for more details. A few words of caution: if you are running | |
560 | your app in a debugger, changing sys.stdout and sys.stderr is likely | |
561 | to really screw things up. | |
562 | ||
563 | Added wxCaret. Unfortunately it's author has still not documented it | |
564 | in the wxWindows docs... | |
565 | ||
566 | Some new 3rd party contributions in wxPython.lib. PyShell, in | |
567 | shell.py is an interesting implementaion of an interactive Python | |
568 | shell in wxWindows. floatbar.py has a class derived from wxToolBar | |
569 | that can sense mouse drags and then reparent itself into another | |
570 | frame. Moving the new frame close to where it came from puts the tool | |
571 | bar back into the original parent. (Unfortunately there is currently | |
572 | a bug in wxGTK's wxFrame.SetToolBar so the FloatBar has some | |
573 | problems...) | |
574 | ||
575 | ||
576 | ||
577 | ||
578 | What's new in 2.1b3 | |
579 | -------------------- | |
580 | ||
581 | This release is syncronized with release 2.1 snapshot 9 of wxWindows. | |
582 | ||
583 | Switched to using SWIG from CVS (see http://swig.cs.uchicago.edu/cvs.html) | |
584 | for some of the new features and such. Also they have encorporated my | |
585 | patches so there is really no reason to stick with the current (very | |
586 | old) release... This version of SWIG gives the following new | |
587 | features: | |
588 | ||
589 | 1. Keyword arguments. You no longer have to specify all the | |
590 | parameters with defaults to a method just to specify a | |
591 | non-default value on the end. You can now do this instead: | |
592 | ||
593 | win = wxWindow(parent, -1, style = mystyle) | |
594 | ||
595 | 2. There is now an an equivalence between Python's None and C++'s | |
596 | NULL. This means that any methods that might return NULL will | |
597 | now return None and you can use none where wxWindows might be | |
598 | expecting NULL. This makes things much more snake-ish. | |
599 | ||
600 | ||
601 | There is a new build system based on a new Python program instead of | |
602 | raw makefiles. Now wxPython builds are virtually the same on MSW or | |
603 | Unix systems. See the end of this file for new build instructions and | |
604 | see distrib/build.py for more details. | |
605 | ||
606 | wxDC.Bilt now includes the useMask parameter, and has been split into | |
607 | two different versions. wxDC.BlitXY is like what was there before and | |
608 | takes raw coordinants and sizes, and the new wxDC.Blit is for the new | |
609 | interface using wxPoints and a wxSize. | |
610 | ||
611 | ||
612 | ||
613 | ||
614 | ||
615 | What's new in 2.1b2 | |
616 | -------------------- | |
617 | ||
618 | Added the missing wxWindow.GetUpdateRegion() method. | |
619 | ||
620 | Made a new change in SWIG (update your patches everybody) that | |
621 | provides a fix for global shadow objects that get an exception in | |
622 | their __del__ when their extension module has already been deleted. | |
623 | It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about | |
624 | line 496 if you want to do it by hand. | |
625 | ||
626 | It is now possible to run through MainLoop more than once in any one | |
627 | process. The cleanup that used to happen as MainLoop completed (and | |
628 | prevented it from running again) has been delayed until the wxc module | |
629 | is being unloaded by Python. | |
630 | ||
631 | I fixed a bunch of stuff in the C++ version of wxGrid so it wouldn't | |
632 | make wxPython look bad. | |
633 | ||
634 | wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added | |
635 | wxWindow.PopupMenuXY to be consistent with some other methods. | |
636 | ||
637 | Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace. | |
638 | ||
639 | You can now provide your own app.MainLoop method. See | |
640 | wxPython/demo/demoMainLoop.py for an example and some explaination. | |
641 | ||
642 | Got the in-place-edit for the wxTreeCtrl fixed and added some demo | |
643 | code to show how to use it. | |
644 | ||
645 | Put the wxIcon constructor back in for GTK as it now has one that | |
646 | matches MSW's. | |
647 | ||
648 | Added wxGrid.GetCells | |
649 | ||
650 | Added wxSystemSettings static methods as functions with names like | |
651 | wxSystemSettings_GetSystemColour. | |
652 | ||
653 | Removed wxPyMenu since using menu callbacks have been depreciated in | |
654 | wxWindows. Use wxMenu and events instead. | |
655 | ||
656 | Added alternate wxBitmap constructor (for MSW only) as | |
657 | wxBitmapFromData(data, type, width, height, depth = 1) | |
658 | ||
659 | Added a helper function named wxPyTypeCast that can convert shadow | |
660 | objects of one type into shadow objects of another type. (Like doing | |
661 | a down-cast.) See the implementation in wx.py for some docs. | |
662 | ||
663 | Fixed wxImage GetData and SetData to properly use String objects for | |
664 | data transfer. | |
665 | ||
666 | Added access methods to wxGridEvent. | |
667 | ||
668 | New Makefile/Setup files supporting multiple dynamic extension modules | |
669 | for unix systems. | |
670 | ||
671 | Fixes for the wxGLCanvas demo to work around a strange bug in gtk. | |
672 | ||
673 | SWIG support routines now compiled separately instead of being bundled | |
674 | in wx.cpp. | |
675 | ||
676 | ||
677 | ||
678 | ||
679 | ||
680 | What's new in 2.1b1 | |
681 | -------------------- | |
682 | Fixed wxComboBox.SetSelection so that it actually sets the selected | |
683 | item. (Actually just removed it from wxPython and let it default to | |
684 | wxChoice.SetSelection which was already doing the right thing.) | |
685 | ||
686 | Added the Printing Framework. | |
687 | ||
688 | Switched back to using the wxWindows DLL for the pre-built Win32 | |
689 | version. The problem was needing to reinitialize static class info | |
690 | data after loading each extension module. | |
691 | ||
692 | Lots of little tweaks and additions to reflect changes to various | |
693 | wxWindows classes. | |
694 | ||
695 | Fixed a bug with attaching objects to tree items. Actually was a | |
696 | symptom of a larger problem with not obtaining the interpreter lock | |
697 | when doing any Py_DECREFs. | |
698 | ||
699 | wxSizer and friends. Sizers are layout tools that manage a colection | |
700 | of windows and sizers. Different types of sizers apply different | |
701 | types of layout algorithms. You saw it here first! These classes are | |
702 | not even in the wxWindows C++ library yet! | |
703 | ||
704 | ||
705 | ||
706 | What's new in 2.0b9 | |
707 | ------------------- | |
708 | Bug fix for ListCtrl in test4.py (Was a missing file... DSM!) | |
709 | ||
710 | Bug fix for occassional GPF on Win32 systems upon termination of a | |
711 | wxPython application. | |
712 | ||
713 | Added wxListBox.GetSelections returning selections as a Tuple. | |
714 | ||
715 | Added a wxTreeItemData that is able to hold any Python object and be | |
716 | associated with items in a wxTreeCtrl. Added test pytree.py to show | |
717 | this feature off. | |
718 | ||
719 | Added wxSafeYield function. | |
720 | ||
721 | OpenGL Canvas can be optionally compiled in to wxPython. | |
722 | ||
723 | Awesome new Demo Framework for showing off wxPython and for learning | |
724 | how it all works. | |
725 | ||
726 | The pre-built Win32 version is no longer distributing the wxWindows | |
727 | DLL. It is statically linked with the wxWindows library instead. | |
728 | ||
729 | Added a couple missing items from the docs. | |
730 | ||
731 | Added wxImage, wxImageHandler, wxPNGHandler, wxJPEGHandler, | |
732 | wxGIFHandler and wxBMPHandler. | |
733 | ||
734 | Added new methods to wxTextCtrl. | |
735 | ||
736 | Fixed some problems with how SWIG was wrapping some wxTreeCtrl | |
737 | methods. | |
738 | ||
739 | ||
740 | ||
741 | What's new in 2.0b8 | |
742 | ------------------- | |
743 | Support for using Python threads in wxPython apps. | |
744 | ||
745 | Several missing methods from various classes. | |
746 | ||
747 | Various bug fixes. | |
748 | ||
749 | ||
750 | ||
751 | What's new in 2.0b7 | |
752 | ------------------- | |
753 | Added DLG_PNT and DLG_SZE convienience methods to wxWindow class. | |
754 | ||
755 | Added missing constructor and other methods for wxMenuItem. | |
756 | ||
757 | ||
758 | ||
759 | What's new in 2.0b6 | |
760 | ------------------- | |
761 | Just a quickie update to fix the self-installer to be compatible with | |
762 | Python 1.5.2b2's Registry settings. | |
763 | ||
764 | ||
765 | What's new in 2.0b5 | |
766 | ------------------- | |
767 | Well obviously the numbering scheme has changed. I did this to | |
768 | reflect the fact that this truly is the second major revision of | |
769 | wxPython, (well the third actually if you count the one I did for | |
770 | wxWindows 1.68 and then threw away...) and also that it is associated | |
771 | with the 2.0 version of wxWindows. | |
772 | ||
773 | I have finally started documenting wxPython. There are several pages | |
774 | in the wxWindows documentation tree specifically about wxPython, and I | |
775 | have added notes within the class references about where and how wxPython | |
776 | diverges from wxWindows. | |
777 | ||
778 | Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a | |
779 | window handle. If you can get the window handle into the python code, | |
780 | it should just work... More news on this later. | |
781 | ||
782 | Added wxImageList, wxToolTip. | |
783 | ||
784 | Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the | |
785 | wxRegConfig class. | |
786 | ||
787 | As usual, some bug fixes, tweaks, etc. | |
788 | ||
789 | ||
790 | ||
791 | What's new in 0.5.3 | |
792 | ------------------- | |
793 | Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc. | |
794 | ||
795 | Various cleanup, tweaks, minor additions, etc. to maintain | |
796 | compatibility with the current wxWindows. | |
797 | ||
798 | ||
799 | ||
800 | What's new in 0.5.0 | |
801 | ------------------- | |
802 | Changed the import semantics from "from wxPython import *" to "from | |
803 | wxPython.wx import *" This is for people who are worried about | |
804 | namespace pollution, they can use "from wxPython import wx" and then | |
805 | prefix all the wxPython identifiers with "wx." | |
806 | ||
807 | Added wxTaskbarIcon for wxMSW. | |
808 | ||
809 | Made the events work for wxGrid. | |
810 | ||
811 | Added wxConfig. | |
812 | ||
813 | Added wxMiniFrame for wxGTK. | |
814 | ||
815 | Changed many of the args and return values that were pointers to gdi | |
816 | objects to references to reflect changes in the wxWindows API. | |
817 | ||
818 | Other assorted fixes and additions. | |
819 | ||
820 | ||
821 | ||
822 | ||
823 | What's new in 0.4.2 | |
824 | ------------------- | |
825 | ||
826 | wxPython on wxGTK works!!! Both dynamic and static on Linux and | |
827 | static on Solaris have been tested. Many thanks go to Harm | |
828 | <H.v.d.Heijden@phys.tue.nl> for his astute detective work on tracking | |
829 | down a nasty DECREF bug. Okay so I have to confess that it was just a | |
830 | DSM (Dumb Stupid Mistake) on my part but it was nasty none the less | |
831 | because the behavior was so different on different platforms. | |
832 | ||
833 | The dynamicly loaded module on Solaris is still segfaulting, so it | |
834 | must have been a different issue all along... | |
835 | ||
836 | ||
837 | ||
838 | What's New in 0.4 | |
839 | ----------------- | |
840 | ||
841 | 1. Worked on wxGTK compatibility. It is partially working. On a | |
842 | Solaris/Sparc box wxPython is working but only when it is statically | |
843 | linked with the Python interpreter. When built as a dyamically loaded | |
844 | extension module, things start acting weirdly and it soon seg-faults. | |
845 | And on Linux both the statically linked and the dynamically linked | |
846 | version segfault shortly after starting up. | |
847 | ||
848 | 2. Added Toolbar, StatusBar and SplitterWindow classes. | |
849 | ||
850 | 3. Varioius bug fixes, enhancements, etc. | |
851 | ||
852 | ---------------------------------------------------------------------- |