]> git.saurik.com Git - wxWidgets.git/blob - wxPython/docs/CHANGES.txt
18a281b4ade876bd09c0f841f8da029748edcd3a
[wxWidgets.git] / wxPython / docs / CHANGES.txt
1 CHANGES.txt for wxPython
2 =====================================================================
3
4 2.5.1.x
5 -------
6
7 (See also the MigrationGuide.txt file for details about some of the
8 big changes that have happened in this release and how you should
9 adapt your code.)
10
11 Many, many little fixes, changes and additions done as part of the move
12 to wxWindows 2.5 that I have forgotten about.
13
14 Added wxMirrorDC.
15
16 Added wxIconLocation
17
18 Added Python wrappers for the new wxVScrolledWindow, wxVListBox, and
19 wxHtmlListBox classes.
20
21 Added wrappers for wxBookCtrl and wxListbook. wxNotebook now derives
22 from wxBookCtrl.
23
24 Added Gordon Williams' PyPlot module to the library, available as the
25 wx.lib.plot module.
26
27 I made a small but important change in the code that aquires the
28 Python Global Interpreter Lock to try and prevent deadlocks that can
29 happen when there are nested attempts to aquire the GIL.
30
31 The RPMs will now install menu items on Mandrake in
32 Applications/Development/Tools for PyCrust, XRCed, etc. They are also
33 installing icons and ``*.desktop`` items in the generic KDE and GNOME
34 locations, but I don't know yet if they are resulting in menu items on
35 non-Mandrake systems. (It didn't automatically do it on my RH-9 build
36 box but I didn't chase it very far...) If you have ideas for how to
37 improve the .spec file to work better and/or on more distros please
38 send me a patch.
39
40 The RPMs are now built on a RH-9 box, and I have tested installing
41 them also on my main Mandrake 9.2 box.
42
43 There are some big changes in the OS X disk image. The actual
44 Installer package now *only* installs the wxMac dynlibs, wxPython
45 extension modules and pacakges, and also the command-line tool
46 scripts. The remaining items (demo, samples, and application bundles
47 for the Demo, PyCrust and XRCed) are now top-level items in the disk
48 image (.dmg file) that users can just drag and drop to wherever they
49 want to put them.
50
51 The wxWave class has been renamed to wxSound, and now has a slightly
52 different API.
53
54 Updated the AnalogClockWindow with many enhancements from E. A. Tacão.
55
56
57
58
59
60 2.4.2.4
61 -------
62
63 Use wxSTC in the demo for displaying the soucre code of the samples.
64
65 Lots of bug fixes and such from the wxWindows folks.
66
67 Added wxPython.lib.newevent from Miki Tebeka. Its usage is
68 demonstrated in the Threads sample in the demo.
69
70 Updates to wxMaskedEditCtrl.
71
72 Added wxMaskedNumCtrl.
73
74 Added Chris Barker's FloatCanvas.
75
76
77
78 2.4.1.2
79 -------
80
81 Added wxScrolledPanel from Will Sadkin
82
83 Added SetShape method to top level windows (e.g. wxFrame.)
84
85 Changed wxSWIG to not generate Python code using apply, (since it will
86 be deprecated in the future) wxSWIG will use ``spam(*args, **kw)`` syntax
87 instead. Also changed the generated __repr__ methods to be a bit more
88 informative.
89
90 Made the version number information more robust and uh, informative.
91 Also added asserts to check that the major.minor versions of wxPython
92 and wxWindows match.
93
94 Added the new wx "renamer" package that will dynamically import from
95 the wxPython package and rename wxFooBar --> FooBar. That means that
96 people can do imports without ``"import *"`` and can use names like
97 wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition
98 to the new namespace.
99
100 Updated Scintilla to 1.52. I also changed it to use wxListCtrl
101 instead of wxListBox for the AutoComplete window, added the ability to
102 use custom bitmaps in the margin and in the AutoComplete windows, and
103 worked out how to do proper clipping of child windows on wxGTK.
104
105 Patrick O'Brien's PyCrust package has been renamed to Py and now
106 includes several new tools. As part of the change the location of the
107 pacakge has changed as well, it is now accessible as "from wxPython
108 import py" (or "from wx import py" using the new namespace.) There
109 are still some transition modules in the wxPython.lib.PyCrust package
110 that will issue a warning and then import what is needed from the new
111 package. These will be removed in a future release.
112
113 Added __nonzero__ method to wxTreeItemId, wxBitmap, wxImage, wxFont,
114 and most other classes that have an Ok or IsOK method. This allows
115 code like "if obj: ..." to be the same as "if obj.IsOk(): ..."
116
117 Toolbars on wxMac can now have controls on them.
118
119 Added wxPython.lib.analogclock module based on samples that were
120 passed back and forth on wxPython-users a while back.
121
122 Added masked edit controls (wxPython.lib.maskededit) by Jeff Childers
123 and Will Sadkin. Updated wxTimeCtrl to use MaskedEdit.
124
125 When the __class__ of a dead object is replaced with _wxPyDeadObject
126 the __del__ of the original class is now called first.
127
128 Added wxTreeListCtrl. (Looks like a wxTreeCtrl embedded in a
129 wxListCtrl, but actually is just giving multiple columns to a
130 wxTreeCtrl.)
131
132 Added wxFutureCall, a subclass of wxTimer that makes it easy to delay
133 a call to any Python callable object.
134
135 Added wxPy versions of wxPrintPreview, wxPreviewFrame, and
136 wxPreviewControlBar so they can be derived from in Python and be able
137 to override the C++ virtual methods.
138
139 Simplified how the wxSizer methods are wrapped, changed the name of
140 the "option" parameter to "proportion" to match the docs ("option" is
141 still accepted for compatibility, but this will go away in a future
142 release,) SetItemMinSize can now take a wxSize (or 2-tuple) parameter,
143 and Spacers can be specified with a wxSize (or 2-tuple) parameter
144
145 Added wxCursorFromBits.
146
147
148
149
150
151 2.4.0.7
152 -------
153
154 Gave up on generating a warning upon the use of the old true/false or
155 TRUE/FALSE values.
156
157 Fixed wxGenericTreeCtrl (used on wxGTK and wxMac for wxTreeCtrl) so
158 that it can successfully handle lots of nodes instead of overflowing
159 when the virtual height of the widget overflowed a 16-bit value.
160
161 Fixed the typemap that converts strings to wxColours to also accept
162 unicode.
163
164 Fixed problem where the wrong class name could sometimes be used for
165 OOR.
166
167 Fixed an interpreter lock problem in the __eq__ and __ne__ methods in
168 wxSize and etc.
169
170 Updated PyCrust to version 0.9
171
172 Instead of always logging C++ assertions, added wxPYAPP_ASSERT_LOG
173 flag to turn it on. In most cases turning it into an exception (the
174 default behavior) is enough. See below in the 2.3.4.1 notes for more
175 details.
176
177
178
179
180 2.4.0.6 (a.k.a. the I'm so stupid release)
181 ------------------------------------------
182
183 The new deprecation class for the old true/false symbols can now be
184 returned from OnInit. And I promise to be sure I am testing what I
185 think I am testing in the future...
186
187
188
189 2.4.0.5 (a.k.a. the blame it on Kevin release)
190 ----------------------------------------------
191
192 A few little but annoying bug fixes.
193
194 Updated pycolourchooser.
195
196 Updated to 0.9b of PyCrust.
197
198
199
200 2.4.0.4
201 -------
202 Added missing wxRect methods
203
204 Add OOR support for wxApp objects too.
205
206 Added wxCursorFromImage, which works on wxMSW and wxGTK so far.
207
208 All platforms now send EVT_DESTROY_WINDOW. Be warned that at the time
209 the event is sent the window is in the process of being deconstructed,
210 and so calling some (most?) methods of the window itself may cause
211 problems.
212
213 Fixed SF Bug #689481, a method in the OGL wrappers was using the wrong
214 return type.
215
216 Fixed SF Bug #689958, an endless loop in printout.py.
217
218 Added EVT_WINDOW_CREATE_ID and EVT_WINDOW_DESTROY_ID so these events
219 can be associated with a specific window ID and more easily caught by
220 the parent window.
221
222 Fixed copy-paste error in wxListCtrl.GetFirstSelected.
223
224 Added missing Init method (and an overloading wrapper) to wxLocale
225 wrapper.
226
227 Added a wxBitmap.SetMaskColour convenience method.
228
229 Changed how the dynamic event tables (used for all Python wx classes,
230 C++ wx classes typically use static event tables) are searched such
231 that they behave from a Python perspective more like the static tables
232 in C++. Namely that if there are identical event bindings in a base
233 Python class and a derived Python class that the one in the derived
234 class will be found first and that if Skip is called that the one in
235 the base class will still be found instead of skipping directly to the
236 static stable in the C++ class.
237
238 Switched to using True/False in the wxPython lib and demo instead of
239 true/false or TRUE/FALSE to prepare for the new boolean type and
240 constants being added to Python. Added code to wx.py to test for the
241 existence of the new constants and to create suitable values if not
242 present.
243
244 Added some static wxApp functions that help with integration with the
245 Mac UI. They are no-ops on other platforms so it doesn't hurt to
246 always call them. The functions are:
247
248 wxApp_GetMacDefaultEncodingIsPC
249 wxApp_GetMacSupportPCMenuShortcuts
250 wxApp_GetMacAboutMenuItemId
251 wxApp_GetMacPreferencesMenuItemId
252 wxApp_GetMacExitMenuItemId
253 wxApp_GetMacHelpMenuTitleName
254 wxApp_SetMacDefaultEncodingIsPC
255 wxApp_SetMacSupportPCMenuShortcuts
256 wxApp_SetMacAboutMenuItemId
257 wxApp_SetMacPreferencesMenuItemId
258 wxApp_SetMacExitMenuItemId
259 wxApp_SetMacHelpMenuTitleName
260
261 Refactored, enhanced and added capabilities for the DrawXXXList
262 functions, inspired by code from Chris Barker.
263
264 The wxWindows .mo language catalog files are now installed in a
265 subdirectory of the wxPython package dir on MSW since that platform
266 doesn't have a standard place for them.
267
268 Added missing deselect methods for wxGrid.
269
270 Fixed typemaps for wxGridCellCoordsArray.
271
272 Updated to the 0.9a version of PyCrust
273
274
275
276 2.4.0.2
277 -------
278 Several bug fixes.
279
280 Added wxIntCtrl from Will Sadkin.
281
282 Added wxPyColourChooser by Michael Gilfix.
283
284
285
286
287 2.4.0.1
288 -------
289 No major new features since 2.3.4.2, mostly bug fixes and minor
290 enhancements.
291
292 Added function wrappers for the common dialogs from Kevin Altis. See
293 wxPython/lib/dialogs.py for more details.
294
295
296
297 2.3.4.2
298 -------
299 Various bug fixes.
300
301
302
303 2.3.4.1
304 -------
305 Updated XRCed and wxTimeCtrl contribs.
306
307 Show a couple new wxGrid features in the demo.
308
309 Several bug fixes in wxWindows.
310
311 Added wxHtmlFilter.
312
313 wxASSERT and related C++ runtime diagnostics are now converted to
314 Python exceptions. When an assert happens a wxPyAssertionError
315 (which derives from AssertionError) exception is created and when
316 control returns back to the Python code that invoked the C++ API it
317 will be raised. The same exception restrictions are in place as
318 before, namely that exceptions can't cross from one Python layer
319 through C++ to another Python layer. That simply means that if you
320 want to catch wxPyAssertionError or any other exception that you need
321 to do it before control returns to C++ at the end of your event
322 handler or callback code. There is some test code in demo/wxButton.py
323 you can use to play with this new feature.
324
325 Added some methods to wxApp (SetAssertMode and GetAssertMode) that let
326 you control how C++ assertions are processed. Valid modes are:
327 wxPYAPP_ASSERT_SUPPRESS, wxPYAPP_ASSERT_EXCEPTION, and
328 wxPYAPP_ASSERT_DIALOG. Using _SUPPRESS will give you behavior like
329 the old "final" builds and the assert will be ignored, _EXCEPTION is
330 the new default described above, and _DIALOG is like the default in
331 2.3.3.1 and prior "hybrid" builds. You can also combine _EXCEPTION
332 and _DIALOG if you wish, although I don't know why you would.
333
334 You can now overload OnInitGui, OnExit and OnAssert in your classes
335 derived from wxApp.
336
337 Added GetSelectedCells, GetSelectionBlockTopLeft,
338 GetSelectionBlockBottomRight, GetSelectedRows, GetSelectedCols nethods
339 to wxGrid.
340
341 Added Python == and != operators for some basic classes
342
343 Fixed the Python wrappers for wxInputStream so they no longer block
344 when reading from a wxProcess on wxGTK. They now work more or less as
345 they did before 2.3.3.1 but the dual meaning of eof() has been
346 removed. There is now a CanRead() method that lets you know if there
347 is data waiting to be read from the pipe.
348
349 Fixed method name clash in wxIEHtmlWin, renamed Refresh to RefreshPage.
350
351 Added Throbber from Cliff Wells to the library and the demo.
352
353 Windows installer prompts to uninstall old version first.
354
355 Added wxPython.lib.evtmgr by Robb Shecter, which is an easier, more
356 "Pythonic" and more OO method of registering handlers for wxWindows
357 events using the Publish/Subscribe pattern.
358
359 Added wxPython.lib.popupctl by Gerrit van Dyk which is a combobox-like
360 gizmo for poping up arbitrary controls. It is currently using
361 wxDialog because of some issues with wxPopupWindow...
362
363 Added wxPython.lib.gridmovers by Gerrit van Dyk which facilitates the
364 dragging of columns and/or rows in a wxGrid.
365
366 Added wxPython.lib.multisash by Gerrit van Dyk which is a nice
367 implementation of allowing the user to split a window any number of
368 times either horizontally or vertically, and to close the split off
369 windows when desired.
370
371 Added helpviewer tool that displays HTML books similarly to how MS
372 HTMLHelp viewer does. Changed how the wxPythonDocs tarball is built
373 and added a script to launch the doc viewer.
374
375
376
377
378 2.3.3.1
379 -------
380 Added wxSplashScreen.
381
382 Added wxGenericDirCtrl.
383
384 Added wxMultiChoiceDialog.
385
386 The calltip window and autocomplete window in wxSTC will now use a
387 wxPopupWindow if available on the platform (and functioning correctly)
388 so they can extend beyond the client area of the STC if needed.
389
390 Finished wrapping and providing typemaps for wxInputStream and also
391 added the stream ctor and other methods for wxImage so images can now
392 be loaded from any Python "file-like" object.
393
394 Changed the img2py tool to use PNG instead of XPM for embedding image
395 data in Python source code, and the generated code now uses streams to
396 convert the image data to wxImage, wxBitmap, or wxIcon.
397
398 Added the wxPython.lib.rcsizer module which contains RowColSizer.
399 This sizer is based on code from Niki Spahiev and lets you specify a
400 row and column for each item, as well as optional column or row
401 spanning. Cells with no item assigned to it are just left blank.
402 Stretchable rows or columns are specified and work the same as in
403 wxFlexGridSizer.
404
405 Updated XRCed from Roman Rolinsky
406
407 Added wxBufferedDC.
408
409 Upgraded wxSTC from Scintilla 1.40 to Scintilla 1.45, and then again
410 to version 1.47, and one more time to 1.48! <wink>
411
412 UNICODE!
413 wxWindows/wxPython can be compiled with unicode support enabled or
414 disabled. Previous to wxPython 2.3.3 non-unicode mode was always
415 used. Starting with 2.3.3 either mode is supported, but only if
416 it is also available in wxWindows on the platform. Currently
417 wxWindows only supports unicode on MS Windows platforms, but with
418 the recent release of GTK+ 2.0 it is only a matter of time until
419 it can be done on wxGTK (Linux and other unixes) as well.
420
421 Unicode works best on platforms in the NT branch of the Windows
422 family tree (NT, win2k, XP) but it is now also possible to use the
423 same unicode binaries on win95/98/ME platforms as well! This is
424 done by using a special library and DLL with the application
425 called MSLU, (Microsoft Layer for Unicode). It simply gets out of
426 the way if the app is run on an NT box, otherwise if run on a
427 win9x box it loads a special DLL that provides the unicode
428 versions of the windows API. So far I have not been able to get
429 this to work perfectly on win9x. Most things work fine but
430 wxTaskBarIcon for example will cause a crash if used with the
431 unicode build on win95.
432
433 So how do you use it? It's very simple. When unicode is enabled,
434 then all functions and methods in wxPython that return a wxString
435 from the C++ function will return a Python unicode object, and
436 parameters to C++ functions/methods that expect a wxString can
437 accept either a Python string or unicode object. If a string
438 object is passed then it will be decoded into unicode using the
439 converter pointed to by wxConvCurrent, which will use the default
440 system encoding. If you need to use a string in some other
441 encoding then you should convert it to unicode using the Python
442 codecs first and then pass the unicode string to the wxPython
443 method.
444
445 Added wxListCtrlAutoWidthMixin from Erik Westra.
446
447 Added wxIconBundle and wxTopLevelWindow.SetIcons.
448
449 Added wxLocale and wxEncodingConverter.
450
451 A little black magic... When the C++ object (for a window or
452 whatever) is deleted there is no way to force the Python shadow object
453 to also be destroyed and clean up all references to it. This leads to
454 crashes if the shadow object tries to call a method with the old C++
455 pointer. The black magic I've done is to replace the __class__ in the
456 Python instance object with a class that raises an exception whenever
457 a method call (or other attribute access) is attempted. This works
458 for any class that is OOR aware.
459
460 Added OOR support for wxGridCellRenderer, wxGridCellEditor,
461 wxGridCellAttr, wxGridCellAttrProvider, wxGridTableBase and their
462 derived classes.
463
464 Added wxImage.GetDataBuffer which returns an in-place edit buffer of
465 the image data. (Patch #546009)
466
467 Added a sample that shows how to embed wxPython in a wxWindows C++
468 application.
469
470 Added wxPyWindow, wxPyPanel and wxPyControl which are just like their
471 wx counterparts except they allow some of the more common C++ virtual
472 methods to be overridden in Python derived classes. The methods
473 supported are:
474
475 DoMoveWindow
476 DoSetSize
477 DoSetClientSize
478 DoSetVirtualSize
479 DoGetSize
480 DoGetClientSize
481 DoGetPosition
482 DoGetVirtualSize
483 DoGetBestSize
484 InitDialog
485 TransferDataFromWindow
486 TransferDataToWindow
487 Validate
488 AcceptsFocus
489 AcceptsFocusFromKeyboard
490 GetMaxSize
491 AddChild
492 RemoveChild
493
494 If there are other methods that you think should be supported
495 please let me know.
496
497 Changed wxGenButton to derive from wxPyControl and overload
498 DoGetBestSize and AcceptsFocus.
499
500 Added wxArtProvider.
501
502 Added wxCallAfter which is a helper function that registers a function
503 (or any callable Python object) to be called once the next time there
504 are no pending events. This is useful for when you need to do
505 something but it can't be done during the current event handler. The
506 implementation is very simple, see wxPython/wx.py.
507
508 Fixed a boatload of reference leaks.
509
510 Added a demo of using a sizer in a wxScrolledWindow, in effect
511 creating a ScrolledPanel.
512
513 Added a sample to the demo that shows how to use radio menu items, and
514 other menu stuff.
515
516 Added wxIEHtmlWin. This is essentially the same as using IE with the
517 ActiveXWrapper already in the library, but it is implemented all in
518 C++ and therefore does not need any of the modules from win32all and
519 so it is less fragile in the face of changes.
520
521 Fixed the ActiveXWrapper problem. Looks like when the win32com
522 modules make a "callback" that they (incorrectly, IMHO) allocate a
523 transient thread state structure. Since wxPython is now saving
524 tstates for it's own callbacks it ended up using garbage after
525 win32com got rid of the temporary tstate...
526
527 Added a generic static text control to wxPython.lib.stattext. This is
528 so things like Boa and PythonCard can have a static text that can
529 respond to mouse events and etc.
530
531 Changed the wxDateTime.Parse* methods to return an int that will be -1
532 on failure, and the index where parsing stopped otherwise.
533
534 Moved tools to be a Python package in wxPython.tools, added scripts to
535 import and launch each tool. This will let you import and use the
536 tools in your own scripts or apps as needed. On Linux and OS X the
537 tool scripts are installed to {prefix}/bin so you should be able to
538 easily launch them from the command line. For example, PyCrust can be
539 started with just the "pycrust" command.
540
541 Added a sample to the demo that catches various key events and
542 displays the details of the event.
543
544 Added wxWizard, wxWizardPage, wxWizardPageSimple and wxPyWizardPage.
545
546 Added wxXmlResourceHandler which allows you to create custom handlers
547 for nonstandard class types in XRC resources. See the demo for an
548 example.
549
550 Added wxPython.lib.mixins.rubberband module from Robb Shecter.
551
552 Added wxTimeCtrl from Will Sadkin.
553
554
555
556
557 2.3.2.1
558 -------
559 Changed (again) how the Python global interpreter lock is handled as
560 well as the Python thread state. This time it works on SMP machines
561 without barfing and is also still compatible with Python debuggers.
562
563 Added some patches from library contributors.
564
565
566
567 2.3.2
568 -----
569 Added EVT_HELP, EVT_HELP_RANGE, EVT_DETAILED_HELP,
570 EVT_DETAILED_HELP_RANGE, EVT_CONTEXT_MENU, wxHelpEvent,
571 wxContextMenuEvent, wxContextHelp, wxContextHelpButton, wxTipWindow,
572 and a demo to show them in action.
573
574 Deprecated PyShell and PyShellWindow, added a snapshot of PyCrust (see
575 http://sourceforge.net/projects/pycrust/. )
576
577 Added the new virtual list capabilities to wxListCtrl.
578
579 Added a wxSTC style editor from Riaan Booysen to the sample apps.
580
581 Added XRCed to the wxPython Tools directory, contributed by Roman
582 Rolinsky.
583
584 Added a new "constructor" to most of the window classes that calls the
585 default C++ constructor, (the one with no parameters) and also added the
586 corresponding Create(...) method. This allows you to do a 2-step
587 creation of windows which is sometimes required for doing things such
588 as setting extended style flags before the window is created, or for
589 passing the object to the XRC resource system to be created from the
590 resource. The name of the new "constructor" is the original name of
591 the class with a "Pre" in it. For example, wxPreWindow, wxPreFrame,
592 etc.
593
594 Updated to version 1.40 of Scintilla and updated wxStyledTextCtrl
595 accordingly. While doing this update I dropped the wxLB_SORT style
596 from the wxListBox created for the AutoComplete functionality. This
597 means that you will have to sort the keyword lists yourself, but you
598 are free to do case sensitive or case insensitive sorts and set the
599 wxSTC flag accordingly.
600
601 Updated wxColumnSorterMixin to also be able to place sort icons on the
602 column headers, and updated the wxListCtrl demo to show it off by
603 using wxColumnSorterMixin.
604
605 Added wxGenBitmapTextButton, TablePrint, etc. contribs from Lorne White.
606
607 Added wxNativeFontInfo and wxFontMapper.
608
609 Added pySketch to the samples.
610
611 Significantly changed how the Python interpreter lock and thread state
612 are managed, which should fix the problem of running on a
613 multi-processor machine.
614
615 Added wxPyLog so log targets can be created in Python to handle log
616 messages however is wished. See demo/Main.py for an example.
617
618 Added wxFindReplaceDialog.
619
620 The second phase of OOR is implemented for wxEvtHandler, wxSizer,
621 wxShape and derived classes. This means that functions and methods
622 that return an object derived from wxEvtHandler that was originally
623 created in Python, will return the original Python object (if it still
624 exists) instead of letting SWIG wrap a new shadow object around the
625 original C++ pointer.
626
627 Added some optimization methods to wxDC: GetBoundingBox, DrawLineList,
628 DrawPointList.
629
630 Added a set of sophisticated Error Dialogs from Chris Fama.
631
632 Added wxRightTextCtrl from Josu Oyanguren to wxPython.lib for aligning
633 text in a wxTextCtrl to the right side.
634
635 Added wxURLDataObject and an example showing drag and drop of URLs to
636 and from web browsers. It's still not 100% bullet-proof for all types
637 of browsers, but it works for the majority of cases with the popular
638 browsers on Windows. On wxGTK it seems that only Netscape 4.x works,
639 if anybody has any suggestions about this please bring it up on the
640 wx-dev list.
641
642 Added wxStopWatch.
643
644 Added wxMimeTypesManager and wxFileType.
645
646 Passing None for the handler parameter to one of the EVT_** functions
647 will now Disconnect the event.
648
649 Added wxPopupWindow and wxPopupTransientWindow.
650
651 Added wxFileHistory.
652
653 Added wxDynamicSashWindow, which allows you to endlessly split windows
654 by dragging a little tab next to the scrollbars. Added a demo to show
655 this and also the ability of multiple wxStyledTextCtrls to share the
656 same document.
657
658 Added wxEditableListBox gizmo.
659
660 Updated wxEditor with lots of enhancements from Steve Howell and Adam
661 Feuer.
662
663 Added the "SplitTree gizmos" which are a collection of classes that
664 were designed to operate together and provide a tree control with
665 additional columns for each item. The classes are
666 wxRemotelyScrolledTreeCtrl, wxTreeCompanionWindow,
667 wxThinSplitterWindow, and wxSplitterScrolledWindow, some of which may
668 also be useful by themselves.
669
670 Added wxDllWidget from Vaclav Slavik which allows wx widgets derived
671 from wxWindow to be loaded from a C++ .dll (or .so) and be used in a
672 wxPython program, without the widget having to be SWIGged first. The
673 visible API of the widget is limited to wxWindow methods plus a
674 SendCommand method, but it is still quite powerful. See
675 wxPython/contrib/dllwidget and wxPython/demo/dllwidget for more
676 details.
677
678
679
680
681 2.3.1
682 -----
683 Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
684 code can get access to the edit control when it is created, (to push
685 on a custom event handler for example.)
686
687 Added wxTextAttr class and SetStyle, SetDefaultStyle and
688 GetDefaultStyle methods to wxTextCtrl.
689
690 Added ability to use xml resource files. Still need to add ability to
691 subclass wxXmlResourceHandler, etc...
692
693 Added wxGridAutoEditMixin to the mixins library package.
694
695 Made ColourSelect be derived from wxButton.
696
697 Fixed img2py to work correctly with Python 2.1.
698
699 Added enhanced wxVTKRenderWindow by Prabhu Ramachandran
700
701
702
703 2.3.0
704 -----
705 Removed initial startup dependency on the OpenGL DLLs so only the
706 glcanvasc.pyd depends on them, (on wxMSW.)
707
708 Changed wxFont, wxPen, wxBrush to not implicitly use the
709 wxThe[Font|Pen|Brush]List objects behind the scenes, but to use normal
710 ctor and dtors.
711
712 Exposed the wxThe[Font|Pen|Brush]List to wxPython.
713
714 Also added wxTheColourDatabase and added a library module (in the
715 wxPython.lib.colourdb module) to load LOTS more colour names into the
716 colour database.
717
718 Added wxWakeUpMainThread, wxMutexGuiEnter, wxMutexGuiLeave,
719 wxMutexGuiLocker and wxThread_IsMain to assist with dealing with GUI
720 access from non-GUI threads.
721
722 wxPyOnDemandOutputWindow is now (more) thread safe if non-GUI threads
723 use print, sys.stdout.write, etc.
724
725 Added CreateTextSizer and CreateButtonSizer to wxDialog
726
727 Added wxPython/lib/infoframe.py from Chris Fama. It contains a class
728 that can be used in place of wxPyOnDemandOutputWindow.
729
730 Added colourselect.py, imagebrowser.py and an updated calendar.py to
731 wxPython/lib from Lorne White.
732
733 Added patch to wxPoint_LIST_helper from Tim Hochberg that should make
734 it gobs faster in certain situations.
735
736 Added tools that will take an image file in a wx supported format and
737 convert it to data embedded in a Python source file. The image is
738 converted to XPM format which is essentially a list of strings
739 containing info about each pixel. The image's transparency mask is
740 included, if there is one, or a mask can be added if a mask colour is
741 specified on the command line. It is then pickled and optionally
742 compressed and written to a Python source file along with functions to
743 convert it to either a wxBitmap or a wxImage. See
744 wxPython/demo/images.py for examples, and wxPython/Tools/img2py.py for
745 the implementation.
746
747 Fixed wxStyledTextCtrl to be much faster on wxGTK. There was some
748 experimental code that got left in place that ended up causing way too
749 many refreshes.
750
751 A couple more hacks in my_distutils.py so wxPython can be built with
752 the distutils that comes with Python 2.1.
753
754 Added a ton of missing methods for wxPrintData.
755
756 Switched to InnoSetup for MSW distributions.
757
758 Added wxToggleButton.
759
760 Fixed bug that prevented wxTreeCtrl.OnCompareItems from being called.
761
762 Added some methods to wxGrid:
763 GetCellHighlightPenWidth
764 GetCellHighlightROPenWidth
765 SetCellHighlightPenWidth
766 SetCellHighlightROPenWidth
767 GetGridWindow
768 GetGridRowLabelWindow
769 GetGridColLabelWindow
770 GetGridCornerLabelWindow
771
772 Added wxGetClientDisplayRect which on wxMSW returns a wxRect
773 representing the area on screen not occupied by the taskbar and such.
774 On other platforms it is equivallent to wxGetDisplaySize.
775
776 OOR:
777 Implemented the first phase of OOR (Original Object Return). See
778 the text in the demo for more details of what this means, but in a
779 nutshell methods such as wxWindow.GetParent or FindWindowById will
780 now return a shadow object of the proper type if it can. By
781 "proper type" I mean that if the wxWindow pointer returned from
782 FindWindowById really points to a wxButton then the Python object
783 constructed will be of a wxButtonPtr class instead of wxWindowPtr
784 as before. This should reduce or eliminiate the need for
785 wxPyTypeCast. (Woo Hoo!) The objects returned are still not the
786 original Python object, but that is the next step. (Although it
787 will probably only work on Python 2.1 and beyond because it will
788 use weak references.)
789
790 This first phase of the OOR plan is fairly significant and has
791 required a lot of changes all over wxPython, most of which should
792 be transparent to you, however I'm not 100% sure that it didn't
793 introduce any new bugs that are hiding somewhere and didn't get
794 stomped on during my testing. So please be sure to test everything
795 thoroughly when you install this version and be sure to report any
796 object-type related oddities to me.
797
798
799 There is now a wxObject class that most other classes derive from like
800 in C++, but the methods provided don't really match but are wxPython
801 specific. It could have been added long ago but OOR required it so it
802 finally got done.
803
804 Finally added wxPyLineShape.GetLineControlPoints, which has been on my
805 list for a while. The above OOR modification made this easier.
806
807 Fixed the __cmp__ methods for wxPoint and others.
808
809 Added wxWave.
810
811 Added the wxPython.lib.mixins package to the library, it is where
812 useful mix-in classes can be placed. Currently there is one to help
813 make the columns in a wxListCtrl sortable, and the MagicIMageList from
814 Mike Fletcher. If you have any custom code that can be factored out
815 of existing classes into a mix-in that would be useful to others
816 please send it to me for inclusion in this package.
817
818 Added a few little sample applications to help newbies to get started
819 by having smaller functional apps to play with. They can be found in
820 wxPython/samples.
821
822
823
824
825 2.2.6
826 -----
827
828 No changes happened in the Python wrappers for this release, only
829 changes and fixes in the wxWindows library.
830
831
832
833 2.2.5
834 -----
835
836 New typemaps for wxString when compiling for Python 2.0 and beyond
837 that allow Unicode objects to be passed as well as String objects. If
838 a Unicode object is passed PyString_AsStringAndSize is used to convert
839 it to a wxString using the default encoding.
840
841 Fixed the generic buttons so tool tips work for them.
842
843 Fixed a bug in the demo's tree control.
844
845 Added a listbox to the listbox demo that shows how to find items with
846 a matching prefix as keys are typed.
847
848 Added code to the wxListCtrl demo to show how to get text from a
849 column in report mode.
850
851 Added code to the toolbar demo to clear the long help from the status
852 bar after 2 seconds.
853
854 Added wxJoystick.
855
856 Fixed wxTimer so it can be used as described in the docs, either with
857 a Notify method in a subclass, or sending an event to a wxEvtHandler
858 object, (usually a window.)
859
860 Added wxNotifyEvent.Allow()
861
862 Fixed GOBS of reference leaks.
863
864 Massive code changes and cleanup to allow wxPython to be split into
865 multiple extension modules again. A Python CObject is used to allow
866 the "export" of SWIG functions and other common helper functions from
867 the wxc module to other modules, even if they are in separate shared
868 libraries. Should also be usable from 3rd party code, just include
869 wxPython/src/export.h
870
871 Changed the default setup so the following are built as separate
872 extension modules: calendar, glcanvas, grid, html, ogl, stc, and
873 utils. Will probably add more later.
874
875 Changed the wxPrinterDC to use the new constructor taking a
876 wxPrintData object. The old ctor is still there using the
877 wxPrinterDC2 name.
878
879 Added wxPython.lib.anchors.py from Riaan Booysen. It contains a class
880 that implements Delphi's Anchors with wxLayoutConstraints.
881
882 Added wxPython.lib.fancytext from Timothy Hochberg.
883
884 Changed the GenericButtons to send their event in idle time, so the
885 mouse won't be captured when the event handler is called.
886
887 Added wxPython.lib.rpcMixin from Greg Landrum, although it's not
888 integrated with the demo yet. It allows a wxPython GUI to be an
889 XML-RPC server.
890
891
892
893 New in 2.2.2
894 ------------
895
896 Significantly changed how the wxStyledtextCtrl code that wraps
897 Scintilla is implemented. Most of it is now automatically generated
898 from an interface definition file provided by Scintilla. This means
899 that it will be much easier to stay in sync with new Scintilla
900 releases, but also means that some of the method and identifier names
901 have changed. See wxPython/demo/data/stc.h for a copy of the C++
902 interface from which the Python interface is generated. There is now
903 some inline documentation in that file that should really help explain
904 how things work.
905
906 I am now using the Python Distutils to build wxPython and to make some
907 of the distribution files. (See http://www.python.org/sigs/distutils-sig/)
908 This means no more messing with my kludgy build.py/Makefile hack,
909 builds will be more consistent with other Python extensions that also
910 use Distutils, and will hopefully make wxPython easier to build for
911 platforms where there have been troubles before. If you are building
912 wxPython for Python 1.5.2 or for 1.6, then you will need to get and
913 install version 1.0 of Distutils from the website above. If you are
914 using Python 2.0 then you already have it.
915
916 Added wxInputStream and the wxFileSystem family of classes,
917 contributed by Joerg Baumann.
918
919 Added wxProcess and support for it to wxExecute. wxProcess lets you
920 get notified when an asyncronous child process terminates, and also to
921 get input/output streams for the child process's stdout, stderr and
922 stdin.
923
924 Removed the old python sizers.
925
926 Added __add__, __sub__ and __cmp__ (equality check only) for wxPoint
927 and wxRealPoint.
928
929 Changed the build to make one big extension module instead of one for
930 the core and each contrib. This allowed me to do away with the
931 libwxPyHelpers.so on unix systems.
932
933 Lots of little fixes here and there.
934
935 Some hacks on wxGTK to try and make the AutoComplete listbox in the
936 wxStyledTextCtrl to behave better. It's still not as nice as on
937 wxMSW, but at least it's a bit more usable now.
938
939
940
941
942 New in 2.2.1
943 ------------
944
945 Various tweaks, fixes, missing methods, etc.
946
947 Added example use of wxTaskBarIcon to the demo.
948
949
950
951 New in 2.2.0
952 ------------
953
954 Added wxLog and friends.
955
956 Added wxFrame.ShowFullScreen for MSW.
957
958 Added PyShellWindow to the wxPython.lib package.
959
960
961
962 New in 2.1.16
963 -------------
964
965 Added an attribute named labelDelta to the generic buttons that
966 specifies how far to offset the label when the button is in the
967 depressed state.
968
969 Added wxTipProvider and friends. See the demo for an example.
970
971 wxGrid can now change the cell highlight colour.
972
973 Added wxDragImage.
974
975 Fixed printing on wxGTK.
976
977 Added wxDateTime, wxTimeSpan, and wxDateSpan to wxPython.utils.
978
979 Added wxCalendarCtrl.
980
981 WARNING: A while back I asked what should be done about the Magic
982 Method Names. (Methods that are automatically turned into event
983 handlers by virtue of their name.) The consensus was that it is more
984 confusing to have them than to try and expand them to have greater
985 coverage. I am finally getting around to removing the code that
986 generates the event binding. This means that if you are using any of
987 the following method names without a EVT_* call that you need to
988 modify your code to add the EVT_* to hook the event to the method.
989
990 OnChar
991 OnSize
992 OnEraseBackground
993 OnSysColourChanged
994 OnInitDialog
995 OnPaint
996 OnIdle
997 OnActivate
998 OnMenuHighlight
999 OnCloseWindow
1000 OnScroll
1001
1002 Added wxSpinCtrl.
1003
1004
1005
1006
1007 New in 2.1.15
1008 -------------
1009
1010 Fixed wxTreeCtrl.HitTest to return both the tree item as well as the
1011 flags that clairify where the click was in relation to the item.
1012
1013 Fixed thread state problem in wxTreeCtrl.GetBoundingBox and
1014 GetSelections.
1015
1016 Fixed some problems in OGL. Also wxShape.SetClientData and
1017 .GetClientData can now deal with Python objects.
1018
1019 Added wxListCtrl.SortItems and changed the demo to show how to use it.
1020
1021 Plugged a memory leak.
1022
1023 Wrapped the new wxGrid and friends. The old wxGrid class is no longer
1024 available. There are some incompatibilities, and unfortunately the
1025 new classes are not documented yet, (however the methods are more
1026 consistent with each other now so you may be able to guess pretty
1027 good...)
1028
1029 Updated filebrowsebutton.py and calendar.py with changes from their
1030 authors. There is now a FileBrowseButtonWithHistory class (what a
1031 mouthful!) and wxCalendar has printing support.
1032
1033 Added ActiveXWrapper to the library, and some good demos of it too.
1034 It works great for embedding a COM (a.k.a OCX, a.k.a ActiveX) control
1035 in a window and calling its methods. It actually creates a new class
1036 on the fly that derives from wxWindow, the COM CoClass and others
1037 needed to make it all work. The resulting class can be instantiated
1038 just like wxWindow, used in sizers, etc. It also responds to all COM
1039 method calls, properties, etc., and if the class or a mix-in has
1040 matching method names, then the COM events will be propogated back to
1041 them.
1042
1043 Created a typemap that allows a string to be used for parameters
1044 expecting a wxColour type. The string is either a colour name as
1045 defined in the wxColourDatabase, or a colour spec of the form
1046 "#RRGGBB". See the wxStyledTextCtrl demo for an example.
1047
1048 I almost forgot to mention the wxStyledTextCtrl! Yes, the
1049 wxStyledTextCtrl is finally in wxPython!! (And the crowd goes
1050 wild...) There's no documentaTion yet (the crowd boos and hisses...)
1051 but I've included a very readable source file in the
1052 wxPython/demo/data directory, a couple fairly good examples, and you
1053 can also refer to the Scintilla documentaion at
1054 http://www.scintilla.org/ScintillaDoc.html to help fill in the gaps
1055 until the docs are done. (The croud murmers contentedly as the tool
1056 provider smiles convincingly and removes his flame-proof suit.)
1057
1058
1059
1060
1061 What's new in 2.1.13
1062 --------------------
1063 Skipped a version number to match what has been released for wxGTK.
1064
1065 Updated wxMVCTree and added a demo for it, also fixed layout on GTK
1066 and some flicker problems.
1067
1068 Added a wrapper class for the Visualization ToolKit (or VTK) in the
1069 wxPython.lib.vtk module. (http://www.kitware.com/)
1070
1071 Fixed wxTreeCtrl.SetItemImage and GetItemImage to recognise the new
1072 "which" parameter.
1073
1074 Added wxPython.lib.spashscreen from Mike Fletcher.
1075
1076 Added wxPython.lib.filebrowsebutton also from Mike Fletcher.
1077
1078 Renamed wxTreeCtrl.GetParent to GetItemParent to avoid a name clash
1079 with wxWindow.GetParent.
1080
1081 Added wxIntersectRect to compute the intersection of two wxRect's.
1082 It is used like this:
1083
1084 intersect = wxIntersectRect(rect1, rect2)
1085
1086 If r1 and r2 don't intersect then None is returned, otherwise the
1087 rectangle representing the intersection is returned.
1088
1089 Some bug fixes for Clipboard and Drag-n-Drop.
1090
1091 Rotated text!!! WooHoo! (See wxDC.DrawRotatedText())
1092
1093 Added a set of Generic Buttons to the library. These are simple
1094 window classes that look and act like native buttons, but you can have
1095 a bit more control over them. The bezel width can be set in addition
1096 to colours, fonts, etc. There is a ToggleButton as well as Bitmap
1097 versions too. They should also serve as a good example of how to
1098 create your own classes derived from wxControl.
1099
1100 The C++ wxToolBar classes have been redone, and so have the wxPython
1101 wrappers. There have been slight modifications to some of the methods
1102 but shouldn't impact anybody too much. I took the opportunity to add
1103 support for setting user data on each toolbar tool. The new AddTool
1104 methods look like this:
1105
1106 def AddTool(ID,
1107 bitmap,
1108 pushedBitmap = wxNullBitmap,
1109 toggle = FALSE,
1110 clientData = NULL,
1111 shortHelpString = "",
1112 longHelpString = "")
1113
1114 def AddSimpleTool(ID,
1115 bitmap,
1116 shortHelpString = "",
1117 longHelpString = "",
1118 toggle=FALSE)
1119
1120
1121 There are also corresponding InsertTool and InsertSimpleTool methods
1122 that additionally take an integer position as the first parameter.
1123
1124 Added a wrapper for the new PCX and TIFF ImageHandlers.
1125
1126 wxRect now simulates attributes named left, right, top and bottom.
1127
1128 Removed all non wx stuff from the glcanvas module since DA's PyOpenGL
1129 is better and compatible with the wxGLCanvas. You can get it at
1130 http://starship.python.net:9673/crew/da/Code/PyOpenGL.
1131
1132 Added some missing EVT functions.
1133
1134 Added Dirk Holtwic's editor classes to the wxPython.lib.editor
1135 package.
1136
1137 Changed all the "LIST" parameter names to "choices" to match the docs.
1138
1139 More fixes for the wxFloatBar, and it now works on wxGTK even better
1140 than wxMSW! (The feat is accomplished by using the wxTB_DOCKABLE
1141 style flag instead of trying to float it ourselves.)
1142
1143
1144
1145
1146 What's new in 2.1.11
1147 --------------------
1148 Skipped a few version numbers so wxMSW, wxGTK and wxPython are all
1149 syncronized.
1150
1151 wxImage.SetData now makes a copy of the image data before giving it to
1152 wxImage. I mistakenly thought that wxImage would copy the data
1153 itself.
1154
1155 Fixed wxMSW's notebook so the pages get their size set as they are
1156 being added. This should remove the need for our
1157 wxNotebook.ResizeChildren hack.
1158
1159 wxPanels now support AutoLayout, and wxNotebooks and wxSplitterWindows
1160 no longer tell their children to Layout() themselves. This will
1161 probably only effect you if you have a wxWindow with AutoLayout inside
1162 a notebook or splitter. If so, either change it to a wxPanel or add
1163 an EVT_SIZE handler that calls Layout().
1164
1165 Fixed deadlock problem that happened when using threads.
1166
1167 Added new HTML printing classes.
1168
1169 Added wxWindow.GetHandle
1170
1171 Apparently wxMouseEvent.Position has been depreciated in wxWindows as
1172 it is no longer available by default. You can use GetPositionTuple
1173 (returning a tuple with x,y) instead, or GetPosition (returning a
1174 wxPoint.)
1175
1176 Added wxPostEvent function that allows events to be posted and then
1177 processed later. This is a thread-safe way to interact with the GUI
1178 thread from other threads.
1179
1180 Added Clipboard and Drag-and-Drop classes.
1181
1182 Added wxFontEnumerator.
1183
1184 Many updates to wxMenu, wxMenuBar.
1185
1186 wxPyEvent and wxPyCommandEvent derived classes now give you the actual
1187 Python object in the event handler instead of a new shadow.
1188
1189 Added a Calendar widget from Lorne White to the library.
1190
1191 Made some fixes to the wxFloatbar. It still has some troubles on
1192 wxGTK...
1193
1194 Added an MVC tree control from Bryn Keller to the library.
1195
1196
1197
1198
1199 What's new in 2.1.5
1200 -------------------
1201 This is a quick bug-fix release to take care of a few nasties that
1202 crept in at the last minute before 2.1.4 was called done. No new
1203 major features.
1204
1205
1206
1207 What's new in 2.1.4
1208 --------------------
1209
1210 This release is NOT syncronized with a snapshot release of wxGTK or
1211 wxMSW. For MSW this isn't much of a problem since you can get the
1212 binaries from the web site. For other platforms you'll have to build
1213 wxGTK from CVS. (See http://web.ukonline.co.uk/julian.smart/wxwin/cvs.htm)
1214 To get the same set of sources from CVS that I used, checkout using
1215 the wxPy-2-1-4 tag.
1216
1217 Now back to what's new...
1218
1219 Much more support for event-less callbacks and add-on modules.
1220
1221 Created add-on module with wxOGL classes.
1222
1223 Added wxWindow.GetChildren(). Be careful of this. It returns a *copy*
1224 of the list of the window's children. While you are using the list if
1225 anything changes in the real list (a child is deleted, etc.) then the
1226 list you are holding will suddenly have window references to garbage
1227 memory and your app will likely crash. But if you are careful it works
1228 great!
1229
1230 Added a bunch of new and missing methods to wxTreeCrtl. The
1231 SortChildren method is now supported, but currently only for the
1232 default sort order.
1233
1234 Added typemaps for wxSize, wxPoint, wxRealPoint, and wxRect that allow
1235 either the actual objects or Python sequence values to be used. For
1236 example, the following are equivallent:
1237
1238 win = wxWindow(parent, size = wxSize(100, 100))
1239 win = wxWindow(parent, size = (100, 100))
1240
1241 Super-charged the wxHtml module. You can now create your own tag
1242 handlers and also have access to the parser and cell classes. There
1243 is a tag handler in the library at wxPython.lib.wxpTag that
1244 understands the WXP tag and is able to place wxPython windows on HTML
1245 pages. See the demo for an example.
1246
1247 A bunch of the methods of wxMenuBar were previously ifdef'd out for
1248 wxGTK. Added them back in since the methods exist now.
1249
1250 Wrapped the wxHtmlHelpController and related classes.
1251
1252 Wrapped the C++ versions of wxSizer and friends. The Python-only
1253 versions are still in the library, but depreciated. (You will get a
1254 warning message if you try to use them, but the warning can be
1255 disabled.) The usage of the C++ versions is slightly different, and
1256 the functionality of wxBorderSizer is now part of wxBoxSizer. I have
1257 added a few methods to wxSizer to try and make the transition as
1258 smooth as possible, I combined all Add methods into a single method
1259 that handles all cases, added an AddMany method, etc. One step I did
1260 not take was to make the default value of flag in the Add method be
1261 wxGROW. This would have made it more backward compatible, but less
1262 portable to and from wxWin C++ code. Please see the docs and demo for
1263 further details.
1264
1265 Added wxPyEvent and wxPyCommandEvent classes, derived from wxEvent and
1266 wxCommandEvent. Each of them has SetPyData and GetPyData methods that
1267 accept or return a single Python object. You can use these classes
1268 directly or derive from them to create your own types of event objects
1269 that can pass through the wxWindows event system without loosing their
1270 Python parts (as long as they are stored with SetPyData.) Stay tuned
1271 for more info and examples in future releases.
1272
1273 Added wxPython.lib.grids as an example of how to derive a new sizer
1274 from the C++ sizers. In this module you will find wxGridSizer and
1275 wxFlexGridSizer. wxGridSizer arrainges its items in a grid in which
1276 all the widths and heights are the same. wxFlexgridSizer allows
1277 different widths and heights, and you can also specify rows and/or
1278 columns that are growable. See the demo for a couple examples for how
1279 to use them.
1280
1281 Added the wxValidator class, and created a class named wxPyValidator
1282 that should be used for the base class of any Python validators. See
1283 the demo for an example. Please note that you MUST implement a Clone
1284 method in your validator classes because of the way some things work
1285 in the underlying C++ library. I did not add wxTextValidator because
1286 of some issues of how it transfers data to and from a wxString, which
1287 in wxPython is automatically translated to and from Python strings, so
1288 there would never be a concrete wxString that would hang around long
1289 enough for the validator to do its job. On the other hand, it should
1290 be real easy to duplicate the functionality of wxTextValidator in a
1291 pure Python class derived from wxPyValidator.
1292
1293 I've finally added a feature that has been on my list for close to two
1294 years! Ever wondered what that zero is for when you create your app
1295 object? Well now you can leave it out or explicitly set it to a true
1296 value. This value now controls what is to be done with sys.stdout and
1297 sys.stderr. A false value leaves them alone, and a true value sets
1298 them to an instance of wxPyOnDemandOutputWindow. (On windows the
1299 default is true, on unix platforms the default is false.) This class
1300 creates a frame containing a wxTextCtrl as soon as anything is written
1301 to sys.stdout or sys.stderr. If you close the window it will come
1302 back again the next time something is written. (You can call
1303 app.RestoreStdio to turn this off.) If you would rather that the stdio be
1304 redirected to a file, you can provide a second parameter to your app
1305 object's constructor that is a filename. If you want to use your own
1306 class instead of wxPyOnDemandOutputWindow you can either implement
1307 RedirectStdio() in you app class or change the value of
1308 wxApp.outputWindowClass like this:
1309
1310 class MyApp(wxApp):
1311 outputWindowClass = MyClass
1312
1313 def OnInit(self):
1314 frame = MyFrame()
1315 self.SetTopWindow(frame)
1316 return true
1317
1318 Please see the implementation of wxPyOnDemandOutputWindow and wxApp in
1319 wx.py for more details. A few words of caution: if you are running
1320 your app in a debugger, changing sys.stdout and sys.stderr is likely
1321 to really screw things up.
1322
1323 Added wxCaret. Unfortunately it's author has still not documented it
1324 in the wxWindows docs...
1325
1326 Some new 3rd party contributions in wxPython.lib. PyShell, in
1327 shell.py is an interesting implementaion of an interactive Python
1328 shell in wxWindows. floatbar.py has a class derived from wxToolBar
1329 that can sense mouse drags and then reparent itself into another
1330 frame. Moving the new frame close to where it came from puts the tool
1331 bar back into the original parent. (Unfortunately there is currently
1332 a bug in wxGTK's wxFrame.SetToolBar so the FloatBar has some
1333 problems...)
1334
1335
1336
1337
1338 What's new in 2.1b3
1339 --------------------
1340
1341 This release is syncronized with release 2.1 snapshot 9 of wxWindows.
1342
1343 Switched to using SWIG from CVS (see http://swig.cs.uchicago.edu/cvs.html)
1344 for some of the new features and such. Also they have encorporated my
1345 patches so there is really no reason to stick with the current (very
1346 old) release... This version of SWIG gives the following new
1347 features:
1348
1349 1. Keyword arguments. You no longer have to specify all the
1350 parameters with defaults to a method just to specify a
1351 non-default value on the end. You can now do this instead:
1352
1353 win = wxWindow(parent, -1, style = mystyle)
1354
1355 2. There is now an an equivalence between Python's None and C++'s
1356 NULL. This means that any methods that might return NULL will
1357 now return None and you can use none where wxWindows might be
1358 expecting NULL. This makes things much more snake-ish.
1359
1360
1361 There is a new build system based on a new Python program instead of
1362 raw makefiles. Now wxPython builds are virtually the same on MSW or
1363 Unix systems. See the end of this file for new build instructions and
1364 see distrib/build.py for more details.
1365
1366 wxDC.Bilt now includes the useMask parameter, and has been split into
1367 two different versions. wxDC.BlitXY is like what was there before and
1368 takes raw coordinants and sizes, and the new wxDC.Blit is for the new
1369 interface using wxPoints and a wxSize.
1370
1371
1372
1373
1374
1375 What's new in 2.1b2
1376 --------------------
1377
1378 Added the missing wxWindow.GetUpdateRegion() method.
1379
1380 Made a new change in SWIG (update your patches everybody) that
1381 provides a fix for global shadow objects that get an exception in
1382 their __del__ when their extension module has already been deleted.
1383 It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about
1384 line 496 if you want to do it by hand.
1385
1386 It is now possible to run through MainLoop more than once in any one
1387 process. The cleanup that used to happen as MainLoop completed (and
1388 prevented it from running again) has been delayed until the wxc module
1389 is being unloaded by Python.
1390
1391 I fixed a bunch of stuff in the C++ version of wxGrid so it wouldn't
1392 make wxPython look bad.
1393
1394 wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added
1395 wxWindow.PopupMenuXY to be consistent with some other methods.
1396
1397 Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace.
1398
1399 You can now provide your own app.MainLoop method. See
1400 wxPython/demo/demoMainLoop.py for an example and some explaination.
1401
1402 Got the in-place-edit for the wxTreeCtrl fixed and added some demo
1403 code to show how to use it.
1404
1405 Put the wxIcon constructor back in for GTK as it now has one that
1406 matches MSW's.
1407
1408 Added wxGrid.GetCells
1409
1410 Added wxSystemSettings static methods as functions with names like
1411 wxSystemSettings_GetSystemColour.
1412
1413 Removed wxPyMenu since using menu callbacks have been depreciated in
1414 wxWindows. Use wxMenu and events instead.
1415
1416 Added alternate wxBitmap constructor (for MSW only) as
1417 wxBitmapFromData(data, type, width, height, depth = 1)
1418
1419 Added a helper function named wxPyTypeCast that can convert shadow
1420 objects of one type into shadow objects of another type. (Like doing
1421 a down-cast.) See the implementation in wx.py for some docs.
1422
1423 Fixed wxImage GetData and SetData to properly use String objects for
1424 data transfer.
1425
1426 Added access methods to wxGridEvent.
1427
1428 New Makefile/Setup files supporting multiple dynamic extension modules
1429 for unix systems.
1430
1431 Fixes for the wxGLCanvas demo to work around a strange bug in gtk.
1432
1433 SWIG support routines now compiled separately instead of being bundled
1434 in wx.cpp.
1435
1436
1437
1438
1439
1440 What's new in 2.1b1
1441 --------------------
1442 Fixed wxComboBox.SetSelection so that it actually sets the selected
1443 item. (Actually just removed it from wxPython and let it default to
1444 wxChoice.SetSelection which was already doing the right thing.)
1445
1446 Added the Printing Framework.
1447
1448 Switched back to using the wxWindows DLL for the pre-built Win32
1449 version. The problem was needing to reinitialize static class info
1450 data after loading each extension module.
1451
1452 Lots of little tweaks and additions to reflect changes to various
1453 wxWindows classes.
1454
1455 Fixed a bug with attaching objects to tree items. Actually was a
1456 symptom of a larger problem with not obtaining the interpreter lock
1457 when doing any Py_DECREFs.
1458
1459 wxSizer and friends. Sizers are layout tools that manage a colection
1460 of windows and sizers. Different types of sizers apply different
1461 types of layout algorithms. You saw it here first! These classes are
1462 not even in the wxWindows C++ library yet!
1463
1464
1465
1466 What's new in 2.0b9
1467 -------------------
1468 Bug fix for ListCtrl in test4.py (Was a missing file... DSM!)
1469
1470 Bug fix for occassional GPF on Win32 systems upon termination of a
1471 wxPython application.
1472
1473 Added wxListBox.GetSelections returning selections as a Tuple.
1474
1475 Added a wxTreeItemData that is able to hold any Python object and be
1476 associated with items in a wxTreeCtrl. Added test pytree.py to show
1477 this feature off.
1478
1479 Added wxSafeYield function.
1480
1481 OpenGL Canvas can be optionally compiled in to wxPython.
1482
1483 Awesome new Demo Framework for showing off wxPython and for learning
1484 how it all works.
1485
1486 The pre-built Win32 version is no longer distributing the wxWindows
1487 DLL. It is statically linked with the wxWindows library instead.
1488
1489 Added a couple missing items from the docs.
1490
1491 Added wxImage, wxImageHandler, wxPNGHandler, wxJPEGHandler,
1492 wxGIFHandler and wxBMPHandler.
1493
1494 Added new methods to wxTextCtrl.
1495
1496 Fixed some problems with how SWIG was wrapping some wxTreeCtrl
1497 methods.
1498
1499
1500
1501 What's new in 2.0b8
1502 -------------------
1503 Support for using Python threads in wxPython apps.
1504
1505 Several missing methods from various classes.
1506
1507 Various bug fixes.
1508
1509
1510
1511 What's new in 2.0b7
1512 -------------------
1513 Added DLG_PNT and DLG_SZE convienience methods to wxWindow class.
1514
1515 Added missing constructor and other methods for wxMenuItem.
1516
1517
1518
1519 What's new in 2.0b6
1520 -------------------
1521 Just a quickie update to fix the self-installer to be compatible with
1522 Python 1.5.2b2's Registry settings.
1523
1524
1525 What's new in 2.0b5
1526 -------------------
1527 Well obviously the numbering scheme has changed. I did this to
1528 reflect the fact that this truly is the second major revision of
1529 wxPython, (well the third actually if you count the one I did for
1530 wxWindows 1.68 and then threw away...) and also that it is associated
1531 with the 2.0 version of wxWindows.
1532
1533 I have finally started documenting wxPython. There are several pages
1534 in the wxWindows documentation tree specifically about wxPython, and I
1535 have added notes within the class references about where and how wxPython
1536 diverges from wxWindows.
1537
1538 Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
1539 window handle. If you can get the window handle into the python code,
1540 it should just work... More news on this later.
1541
1542 Added wxImageList, wxToolTip.
1543
1544 Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
1545 wxRegConfig class.
1546
1547 As usual, some bug fixes, tweaks, etc.
1548
1549
1550
1551 What's new in 0.5.3
1552 -------------------
1553 Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
1554
1555 Various cleanup, tweaks, minor additions, etc. to maintain
1556 compatibility with the current wxWindows.
1557
1558
1559
1560 What's new in 0.5.0
1561 -------------------
1562 Changed the import semantics from ``"from wxPython import *"`` to
1563 ``"from wxPython.wx import *"`` This is for people who are worried about
1564 namespace pollution, they can use "from wxPython import wx" and then
1565 prefix all the wxPython identifiers with "wx."
1566
1567 Added wxTaskbarIcon for wxMSW.
1568
1569 Made the events work for wxGrid.
1570
1571 Added wxConfig.
1572
1573 Added wxMiniFrame for wxGTK.
1574
1575 Changed many of the args and return values that were pointers to gdi
1576 objects to references to reflect changes in the wxWindows API.
1577
1578 Other assorted fixes and additions.
1579
1580
1581
1582
1583 What's new in 0.4.2
1584 -------------------
1585
1586 wxPython on wxGTK works!!! Both dynamic and static on Linux and
1587 static on Solaris have been tested. Many thanks go to Harm
1588 <H.v.d.Heijden@phys.tue.nl> for his astute detective work on tracking
1589 down a nasty DECREF bug. Okay so I have to confess that it was just a
1590 DSM (Dumb Stupid Mistake) on my part but it was nasty none the less
1591 because the behavior was so different on different platforms.
1592
1593 The dynamicly loaded module on Solaris is still segfaulting, so it
1594 must have been a different issue all along...
1595
1596
1597
1598 What's New in 0.4
1599 -----------------
1600
1601 1. Worked on wxGTK compatibility. It is partially working. On a
1602 Solaris/Sparc box wxPython is working but only when it is statically
1603 linked with the Python interpreter. When built as a dyamically loaded
1604 extension module, things start acting weirdly and it soon seg-faults.
1605 And on Linux both the statically linked and the dynamically linked
1606 version segfault shortly after starting up.
1607
1608 2. Added Toolbar, StatusBar and SplitterWindow classes.
1609
1610 3. Varioius bug fixes, enhancements, etc.
1611
1612
1613