1 Recent Changes for wxPython
2 =====================================================================
8 A bug-fix only release.
16 wx.ADJUST_MINSIZE is now the default behaviour for window items in
17 sizers. This means that the item's GetMinSize and/or GetBestSize will
18 be called when calculating layout and the return value from that will
19 be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE
20 flag was added that will cause the sizer to use the old behaviour in
21 that it will *not* call the window's methods to determine the new best
22 size, instead the minsize that the window had when added to the sizer
23 (or the size the window was created with) will always be used. Please
24 see the Sizers section in the Migration Guide for more details.
26 Added new MaskedEditControl code from Will Sadkin. The modules are
27 now locaed in their own sub-package, wx.lib.masked. Demos updated.
29 The changes that implemented the incompatible wx.DC methods in 2.5.1.5
30 have been reverted. The wx.DC methods are now compatible with the 2.4
31 implemetation. In addition a set of renamed methods have been added
32 that take wx.Point and/or wx.Size objects instead of individual
35 Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
36 all columns of a wx.ListCtrl in report mode to be edited.
38 Deprecated the wx.iewin module.
40 Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well
41 as their Insert* and Prepend* counterparts.
43 Added a generic StaticBitmap class in wx.lib.statbmp for the same
44 reasons that stattext was created, so it could be mouse sensitive on
45 all platforms like normal windows. Also updated stattext.py and
46 buttons.py to handle attribute (font & colour) defaults and
47 inheritance the new way. If you have custom controls of your own you
48 should review stattxt.py or one of the others to see how it is to be
51 wx.InitAllImageHandlers is now an empty function that does nothing but
52 exist for backwards compatibility. The C++ version is now called
53 automatically when wxPython is initialized. Since all the handlers
54 are included in the wxWidgets shared library anyway, this imposes only
55 a very small amount of overhead and removes several unneccessary
58 Replaced wx/lib/pubsub.py with a version that uses weak references to
59 track the subscribers, plus other fixes/additions. Thanks go to
60 Oliver Schoenborn and Robb Shecter.
62 wxGTK now uses gtk_init_check so wxPython can raise an exception if
63 there is no DISPLAY available or other initializaion problem.
65 wx.GetKeyState now has an implementation for wxGTK and is able to
66 detect the up/down or toggle state of modifier and toggle keys.
68 The LC_NUMERIC locale is now reset back to "C" (compatibility) when
69 running on wxGTK to work around the fact that GTK requires the locale
70 to be set to the system settings but Python depends on LC_NUMERIC
71 remaining compatible with "C".
73 Switched gizmos.TreeListCtrl to the newer version of the code from the
76 OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
77 leaked out there...) The wx.ogl module has been deprecated in favor
78 of the new Python port of the OGL library located at wx.lib.ogl
79 contributed by Pierre Hjälm. This will hopefully greatly extend the
80 life of OGL within wxPython by making it more easily maintainable and
81 less prone to getting rusty as there seems to be less and less
82 interest in maintaining the C++ version. At this point there are just
83 a couple minor known compatibility differences, please see the
84 MigrationGuide_ file for details.
86 .. _MigrationGuide: MigrationGuide.html
88 EVT_STC_POSCHANGED has been removed as it has been deprecated in
89 Scintilla for several releases now.
91 All the Window and GDI (pen, bitmap, etc.) class constructors and also
92 many toplevel functions and static methods will now check that a
93 wx.App object has already been created and will raise a
94 wx.PyNoAppError exception if not.
96 Added more default args as needed to allow most window types to be
97 constructed with only the parent window arg. In some cases other args
98 may be required for normal operation, but they can usually be set
101 Removed the deprecated ErrorDialogs and PythonBitmaps modules. If you
102 were using these in your apps then please join wxPython-dev and assist
103 with a more modern reimplementation.
105 Added a new version (0.8.3) of FloatCanvas from Chris Barker. It's now
106 in a subpackage of wx.lib.
108 It is now possible to change the tab traversal order of controls on a
109 panel or dialog. For details see the new MoveAfterInTabOrder and
110 MoveBeforeInTabOrder methods of wx.Window.
112 Applied (and heavily modified) a patch from Eugene
113 <svip123@fastmail.fm> that allows the sample modules in the demo to be
114 edited and reloaded, all from within the demo. You can switch back
115 and forth between the default and your edited version, and any errors
116 ocurring upon the reload are reported on the Demo tab.
118 Added a menu item in the demo that will open a PyShell window that has
119 the app and demo frame preloaded in the namespace. This is another
120 good way to explore and play with the objects in the currently running
121 sample. For example, load the Button sample and then do the following
124 >>> b = frame.demoPage.GetChildren()[0]
125 >>> for x in range(0, 500, 10):
128 ... wx.MilliSleep(10)
136 (See also the MigrationGuide_ file for details about some of the
137 big changes that have happened in this release and how you should
140 .. _MigrationGuide: MigrationGuide.html
143 The wxWindows project and library is now known as wxWidgets. Please
144 see http://www.wxwindows.org/name.htm for more details. This won't
145 really affect wxPython all that much, other than the fact that the
146 wxwindows.org domain name will be changing to wxwidgets.org, so mail
147 list, CVS, and etc. addresses will be changing. We're going to try
148 and smooth the transition as much as possible, but I wanted you all to
149 be aware of this change if you run into any issues.
152 Many, many little fixes, changes and additions done as part of the move
153 to wxWidgets 2.5 that I have forgotten about.
159 Added Python wrappers and demos for the new wxVScrolledWindow,
160 wxVListBox, and wxHtmlListBox classes.
162 Added wrappers for wxBookCtrl and wxListbook. wxNotebook now derives
165 Added Gordon Williams' PyPlot module to the library, available as the
168 I made a small but important change in the code that aquires the
169 Python Global Interpreter Lock to try and prevent deadlocks that can
170 happen when there are nested attempts to aquire the GIL.
172 The RPMs will now install menu items on Mandrake Linux in
173 Applications/Development/Tools for PyCrust, XRCed, etc. The RPMs are
174 also installing icons and ``*.desktop`` items in the generic KDE and
175 GNOME locations, but I don't know yet if they are resulting in menu
176 items on non-Mandrake systems. (It didn't automatically do it on my
177 RH-9 build box but I didn't chase it very far...) If you have ideas
178 for how to improve the .spec file to work better and/or on more
179 distros please send me a patch.
181 The RPMs are now built on a fairly generic RH-9 box, and I have tested
182 installing them also on my main Mandrake 9.2 box.
184 There are some big changes in the OS X disk image. The actual
185 Installer package now *only* installs the wxMac dynlibs, wxPython
186 extension modules and Python packages, and also the command-line tool
187 scripts. The remaining items (demo, samples, and application bundles
188 for the Demo, PyCrust and XRCed) are now top-level items in the disk
189 image (.dmg file) that users can just drag and drop to wherever they
192 The wxWave class has been renamed to wxSound, and now has a slightly
195 Updated the AnalogClockWindow with many enhancements from E. A. Tacão.
197 wxMac now has wx.ToggleButton!
199 wx.stc.StyledTextCtrl has been updated to version 1.58 of Scintilla.
201 To help with the wx.stc.StyledTextCtrl performance issues on wxMac
202 I've added a SetUseAntiAliasing method (and GetUseAntiAliasing too)
203 that will turn off the use of antialiased fonts in the wxSTC, allowing
204 it to bypass the slow text measuring routines and use the fast and
205 simple one instead. By default the setting is turned off (on wxMac
206 only.) When run on OSX the Py* apps have a new item on the Options
207 menu for controlling this setting if you would like to experiment with
210 Updated wx.lib.calendar with many fixes and enhancements from Joerg
213 Added wx.Display and wx.VideoMode.
215 AppleEvents can be handled by overriding wx.App methods MacOpenFile,
216 MacPrintFile, MacNewFile, and MacReopenApp.
218 Added wx.PlatformInfo which is a tuple containing strings that
219 describe the platform and build options of wxPython. See the
220 MigrationGuide for more details.
222 Created a new extension module "activex" from Lindsay Mathieson's
223 newest wxActiveX_ class. (The existing iewin module used an older
224 version of this code, but only exposed the wxIEHtmlWin class.) This
225 new module will (in theory ;-) ) allow you to host arbitrary ActiveX
226 controls in a wx.Window, **without** requiring the use of the win32com
227 and other PyWin32 modules! This should eliminate the cronic problems
228 that have resulted from minor mismatches in how PyWin32 handles the
229 GIL and tstate when making callbacks, etc. The older iewin module
230 will be left in this release as the new stuff is not fully backwards
231 compatible, but you should migrate your code to the new IEHtmlWindow
232 in wx.lib.iewin, so the old one can be eventually removed.
233 Additionally, I've always considered that the wx.lib.activexwrapper
234 module is an ugly hack that I only included in the lib because I
235 couldn't figure out anything better. Well now we have something that,
236 if it isn't already, has the potential to be better. So consider
237 migrating away from using activexwrapper as well. Please see the
238 MigrationGuide for more details on using the new module.
240 .. _wxActiveX: http://members.optusnet.com.au/~blackpaw1/wxactivex.html
242 Floats are allowed again as function parameters where ints are expected.
250 Use wxSTC in the demo for displaying the soucre code of the samples.
252 Lots of bug fixes and such from the wxWindows folks.
254 Added wxPython.lib.newevent from Miki Tebeka. Its usage is
255 demonstrated in the Threads sample in the demo.
257 Updates to wxMaskedEditCtrl.
259 Added wxMaskedNumCtrl.
261 Added Chris Barker's FloatCanvas.
268 Added wxScrolledPanel from Will Sadkin
270 Added SetShape method to top level windows (e.g. wxFrame.)
272 Changed wxSWIG to not generate Python code using apply, (since it will
273 be deprecated in the future) wxSWIG will use ``spam(*args, **kw)`` syntax
274 instead. Also changed the generated __repr__ methods to be a bit more
277 Made the version number information more robust and uh, informative.
278 Also added asserts to check that the major.minor versions of wxPython
281 Added the new wx "renamer" package that will dynamically import from
282 the wxPython package and rename wxFooBar --> FooBar. That means that
283 people can do imports without ``"import *"`` and can use names like
284 wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition
285 to the new namespace.
287 Updated Scintilla to 1.52. I also changed it to use wxListCtrl
288 instead of wxListBox for the AutoComplete window, added the ability to
289 use custom bitmaps in the margin and in the AutoComplete windows, and
290 worked out how to do proper clipping of child windows on wxGTK.
292 Patrick O'Brien's PyCrust package has been renamed to Py and now
293 includes several new tools. As part of the change the location of the
294 pacakge has changed as well, it is now accessible as "from wxPython
295 import py" (or "from wx import py" using the new namespace.) There
296 are still some transition modules in the wxPython.lib.PyCrust package
297 that will issue a warning and then import what is needed from the new
298 package. These will be removed in a future release.
300 Added __nonzero__ method to wxTreeItemId, wxBitmap, wxImage, wxFont,
301 and most other classes that have an Ok or IsOK method. This allows
302 code like "if obj: ..." to be the same as "if obj.IsOk(): ..."
304 Toolbars on wxMac can now have controls on them.
306 Added wxPython.lib.analogclock module based on samples that were
307 passed back and forth on wxPython-users a while back.
309 Added masked edit controls (wxPython.lib.maskededit) by Jeff Childers
310 and Will Sadkin. Updated wxTimeCtrl to use MaskedEdit.
312 When the __class__ of a dead object is replaced with _wxPyDeadObject
313 the __del__ of the original class is now called first.
315 Added wxTreeListCtrl. (Looks like a wxTreeCtrl embedded in a
316 wxListCtrl, but actually is just giving multiple columns to a
319 Added wxFutureCall, a subclass of wxTimer that makes it easy to delay
320 a call to any Python callable object.
322 Added wxPy versions of wxPrintPreview, wxPreviewFrame, and
323 wxPreviewControlBar so they can be derived from in Python and be able
324 to override the C++ virtual methods.
326 Simplified how the wxSizer methods are wrapped, changed the name of
327 the "option" parameter to "proportion" to match the docs ("option" is
328 still accepted for compatibility, but this will go away in a future
329 release,) SetItemMinSize can now take a wxSize (or 2-tuple) parameter,
330 and Spacers can be specified with a wxSize (or 2-tuple) parameter
332 Added wxCursorFromBits.
341 Gave up on generating a warning upon the use of the old true/false or
344 Fixed wxGenericTreeCtrl (used on wxGTK and wxMac for wxTreeCtrl) so
345 that it can successfully handle lots of nodes instead of overflowing
346 when the virtual height of the widget overflowed a 16-bit value.
348 Fixed the typemap that converts strings to wxColours to also accept
351 Fixed problem where the wrong class name could sometimes be used for
354 Fixed an interpreter lock problem in the __eq__ and __ne__ methods in
357 Updated PyCrust to version 0.9
359 Instead of always logging C++ assertions, added wxPYAPP_ASSERT_LOG
360 flag to turn it on. In most cases turning it into an exception (the
361 default behavior) is enough. See below in the 2.3.4.1 notes for more
367 2.4.0.6 (a.k.a. the I'm so stupid release)
368 ------------------------------------------
370 The new deprecation class for the old true/false symbols can now be
371 returned from OnInit. And I promise to be sure I am testing what I
372 think I am testing in the future...
376 2.4.0.5 (a.k.a. the blame it on Kevin release)
377 ----------------------------------------------
379 A few little but annoying bug fixes.
381 Updated pycolourchooser.
383 Updated to 0.9b of PyCrust.
389 Added missing wxRect methods
391 Add OOR support for wxApp objects too.
393 Added wxCursorFromImage, which works on wxMSW and wxGTK so far.
395 All platforms now send EVT_DESTROY_WINDOW. Be warned that at the time
396 the event is sent the window is in the process of being deconstructed,
397 and so calling some (most?) methods of the window itself may cause
400 Fixed SF Bug #689481, a method in the OGL wrappers was using the wrong
403 Fixed SF Bug #689958, an endless loop in printout.py.
405 Added EVT_WINDOW_CREATE_ID and EVT_WINDOW_DESTROY_ID so these events
406 can be associated with a specific window ID and more easily caught by
409 Fixed copy-paste error in wxListCtrl.GetFirstSelected.
411 Added missing Init method (and an overloading wrapper) to wxLocale
414 Added a wxBitmap.SetMaskColour convenience method.
416 Changed how the dynamic event tables (used for all Python wx classes,
417 C++ wx classes typically use static event tables) are searched such
418 that they behave from a Python perspective more like the static tables
419 in C++. Namely that if there are identical event bindings in a base
420 Python class and a derived Python class that the one in the derived
421 class will be found first and that if Skip is called that the one in
422 the base class will still be found instead of skipping directly to the
423 static stable in the C++ class.
425 Switched to using True/False in the wxPython lib and demo instead of
426 true/false or TRUE/FALSE to prepare for the new boolean type and
427 constants being added to Python. Added code to wx.py to test for the
428 existence of the new constants and to create suitable values if not
431 Added some static wxApp functions that help with integration with the
432 Mac UI. They are no-ops on other platforms so it doesn't hurt to
433 always call them. The functions are:
435 wxApp_GetMacDefaultEncodingIsPC
436 wxApp_GetMacSupportPCMenuShortcuts
437 wxApp_GetMacAboutMenuItemId
438 wxApp_GetMacPreferencesMenuItemId
439 wxApp_GetMacExitMenuItemId
440 wxApp_GetMacHelpMenuTitleName
441 wxApp_SetMacDefaultEncodingIsPC
442 wxApp_SetMacSupportPCMenuShortcuts
443 wxApp_SetMacAboutMenuItemId
444 wxApp_SetMacPreferencesMenuItemId
445 wxApp_SetMacExitMenuItemId
446 wxApp_SetMacHelpMenuTitleName
448 Refactored, enhanced and added capabilities for the DrawXXXList
449 functions, inspired by code from Chris Barker.
451 The wxWindows .mo language catalog files are now installed in a
452 subdirectory of the wxPython package dir on MSW since that platform
453 doesn't have a standard place for them.
455 Added missing deselect methods for wxGrid.
457 Fixed typemaps for wxGridCellCoordsArray.
459 Updated to the 0.9a version of PyCrust
467 Added wxIntCtrl from Will Sadkin.
469 Added wxPyColourChooser by Michael Gilfix.
476 No major new features since 2.3.4.2, mostly bug fixes and minor
479 Added function wrappers for the common dialogs from Kevin Altis. See
480 wxPython/lib/dialogs.py for more details.
492 Updated XRCed and wxTimeCtrl contribs.
494 Show a couple new wxGrid features in the demo.
496 Several bug fixes in wxWindows.
500 wxASSERT and related C++ runtime diagnostics are now converted to
501 Python exceptions. When an assert happens a wxPyAssertionError
502 (which derives from AssertionError) exception is created and when
503 control returns back to the Python code that invoked the C++ API it
504 will be raised. The same exception restrictions are in place as
505 before, namely that exceptions can't cross from one Python layer
506 through C++ to another Python layer. That simply means that if you
507 want to catch wxPyAssertionError or any other exception that you need
508 to do it before control returns to C++ at the end of your event
509 handler or callback code. There is some test code in demo/wxButton.py
510 you can use to play with this new feature.
512 Added some methods to wxApp (SetAssertMode and GetAssertMode) that let
513 you control how C++ assertions are processed. Valid modes are:
514 wxPYAPP_ASSERT_SUPPRESS, wxPYAPP_ASSERT_EXCEPTION, and
515 wxPYAPP_ASSERT_DIALOG. Using _SUPPRESS will give you behavior like
516 the old "final" builds and the assert will be ignored, _EXCEPTION is
517 the new default described above, and _DIALOG is like the default in
518 2.3.3.1 and prior "hybrid" builds. You can also combine _EXCEPTION
519 and _DIALOG if you wish, although I don't know why you would.
521 You can now overload OnInitGui, OnExit and OnAssert in your classes
524 Added GetSelectedCells, GetSelectionBlockTopLeft,
525 GetSelectionBlockBottomRight, GetSelectedRows, GetSelectedCols nethods
528 Added Python == and != operators for some basic classes
530 Fixed the Python wrappers for wxInputStream so they no longer block
531 when reading from a wxProcess on wxGTK. They now work more or less as
532 they did before 2.3.3.1 but the dual meaning of eof() has been
533 removed. There is now a CanRead() method that lets you know if there
534 is data waiting to be read from the pipe.
536 Fixed method name clash in wxIEHtmlWin, renamed Refresh to RefreshPage.
538 Added Throbber from Cliff Wells to the library and the demo.
540 Windows installer prompts to uninstall old version first.
542 Added wxPython.lib.evtmgr by Robb Shecter, which is an easier, more
543 "Pythonic" and more OO method of registering handlers for wxWindows
544 events using the Publish/Subscribe pattern.
546 Added wxPython.lib.popupctl by Gerrit van Dyk which is a combobox-like
547 gizmo for poping up arbitrary controls. It is currently using
548 wxDialog because of some issues with wxPopupWindow...
550 Added wxPython.lib.gridmovers by Gerrit van Dyk which facilitates the
551 dragging of columns and/or rows in a wxGrid.
553 Added wxPython.lib.multisash by Gerrit van Dyk which is a nice
554 implementation of allowing the user to split a window any number of
555 times either horizontally or vertically, and to close the split off
556 windows when desired.
558 Added helpviewer tool that displays HTML books similarly to how MS
559 HTMLHelp viewer does. Changed how the wxPythonDocs tarball is built
560 and added a script to launch the doc viewer.
567 Added wxSplashScreen.
569 Added wxGenericDirCtrl.
571 Added wxMultiChoiceDialog.
573 The calltip window and autocomplete window in wxSTC will now use a
574 wxPopupWindow if available on the platform (and functioning correctly)
575 so they can extend beyond the client area of the STC if needed.
577 Finished wrapping and providing typemaps for wxInputStream and also
578 added the stream ctor and other methods for wxImage so images can now
579 be loaded from any Python "file-like" object.
581 Changed the img2py tool to use PNG instead of XPM for embedding image
582 data in Python source code, and the generated code now uses streams to
583 convert the image data to wxImage, wxBitmap, or wxIcon.
585 Added the wxPython.lib.rcsizer module which contains RowColSizer.
586 This sizer is based on code from Niki Spahiev and lets you specify a
587 row and column for each item, as well as optional column or row
588 spanning. Cells with no item assigned to it are just left blank.
589 Stretchable rows or columns are specified and work the same as in
592 Updated XRCed from Roman Rolinsky
596 Upgraded wxSTC from Scintilla 1.40 to Scintilla 1.45, and then again
597 to version 1.47, and one more time to 1.48! <wink>
600 wxWindows/wxPython can be compiled with unicode support enabled or
601 disabled. Previous to wxPython 2.3.3 non-unicode mode was always
602 used. Starting with 2.3.3 either mode is supported, but only if
603 it is also available in wxWindows on the platform. Currently
604 wxWindows only supports unicode on MS Windows platforms, but with
605 the recent release of GTK+ 2.0 it is only a matter of time until
606 it can be done on wxGTK (Linux and other unixes) as well.
608 Unicode works best on platforms in the NT branch of the Windows
609 family tree (NT, win2k, XP) but it is now also possible to use the
610 same unicode binaries on win95/98/ME platforms as well! This is
611 done by using a special library and DLL with the application
612 called MSLU, (Microsoft Layer for Unicode). It simply gets out of
613 the way if the app is run on an NT box, otherwise if run on a
614 win9x box it loads a special DLL that provides the unicode
615 versions of the windows API. So far I have not been able to get
616 this to work perfectly on win9x. Most things work fine but
617 wxTaskBarIcon for example will cause a crash if used with the
618 unicode build on win95.
620 So how do you use it? It's very simple. When unicode is enabled,
621 then all functions and methods in wxPython that return a wxString
622 from the C++ function will return a Python unicode object, and
623 parameters to C++ functions/methods that expect a wxString can
624 accept either a Python string or unicode object. If a string
625 object is passed then it will be decoded into unicode using the
626 converter pointed to by wxConvCurrent, which will use the default
627 system encoding. If you need to use a string in some other
628 encoding then you should convert it to unicode using the Python
629 codecs first and then pass the unicode string to the wxPython
632 Added wxListCtrlAutoWidthMixin from Erik Westra.
634 Added wxIconBundle and wxTopLevelWindow.SetIcons.
636 Added wxLocale and wxEncodingConverter.
638 A little black magic... When the C++ object (for a window or
639 whatever) is deleted there is no way to force the Python shadow object
640 to also be destroyed and clean up all references to it. This leads to
641 crashes if the shadow object tries to call a method with the old C++
642 pointer. The black magic I've done is to replace the __class__ in the
643 Python instance object with a class that raises an exception whenever
644 a method call (or other attribute access) is attempted. This works
645 for any class that is OOR aware.
647 Added OOR support for wxGridCellRenderer, wxGridCellEditor,
648 wxGridCellAttr, wxGridCellAttrProvider, wxGridTableBase and their
651 Added wxImage.GetDataBuffer which returns an in-place edit buffer of
652 the image data. (Patch #546009)
654 Added a sample that shows how to embed wxPython in a wxWindows C++
657 Added wxPyWindow, wxPyPanel and wxPyControl which are just like their
658 wx counterparts except they allow some of the more common C++ virtual
659 methods to be overridden in Python derived classes. The methods
672 TransferDataFromWindow
676 AcceptsFocusFromKeyboard
681 If there are other methods that you think should be supported
684 Changed wxGenButton to derive from wxPyControl and overload
685 DoGetBestSize and AcceptsFocus.
689 Added wxCallAfter which is a helper function that registers a function
690 (or any callable Python object) to be called once the next time there
691 are no pending events. This is useful for when you need to do
692 something but it can't be done during the current event handler. The
693 implementation is very simple, see wxPython/wx.py.
695 Fixed a boatload of reference leaks.
697 Added a demo of using a sizer in a wxScrolledWindow, in effect
698 creating a ScrolledPanel.
700 Added a sample to the demo that shows how to use radio menu items, and
703 Added wxIEHtmlWin. This is essentially the same as using IE with the
704 ActiveXWrapper already in the library, but it is implemented all in
705 C++ and therefore does not need any of the modules from win32all and
706 so it is less fragile in the face of changes.
708 Fixed the ActiveXWrapper problem. Looks like when the win32com
709 modules make a "callback" that they (incorrectly, IMHO) allocate a
710 transient thread state structure. Since wxPython is now saving
711 tstates for it's own callbacks it ended up using garbage after
712 win32com got rid of the temporary tstate...
714 Added a generic static text control to wxPython.lib.stattext. This is
715 so things like Boa and PythonCard can have a static text that can
716 respond to mouse events and etc.
718 Changed the wxDateTime.Parse* methods to return an int that will be -1
719 on failure, and the index where parsing stopped otherwise.
721 Moved tools to be a Python package in wxPython.tools, added scripts to
722 import and launch each tool. This will let you import and use the
723 tools in your own scripts or apps as needed. On Linux and OS X the
724 tool scripts are installed to {prefix}/bin so you should be able to
725 easily launch them from the command line. For example, PyCrust can be
726 started with just the "pycrust" command.
728 Added a sample to the demo that catches various key events and
729 displays the details of the event.
731 Added wxWizard, wxWizardPage, wxWizardPageSimple and wxPyWizardPage.
733 Added wxXmlResourceHandler which allows you to create custom handlers
734 for nonstandard class types in XRC resources. See the demo for an
737 Added wxPython.lib.mixins.rubberband module from Robb Shecter.
739 Added wxTimeCtrl from Will Sadkin.
746 Changed (again) how the Python global interpreter lock is handled as
747 well as the Python thread state. This time it works on SMP machines
748 without barfing and is also still compatible with Python debuggers.
750 Added some patches from library contributors.
756 Added EVT_HELP, EVT_HELP_RANGE, EVT_DETAILED_HELP,
757 EVT_DETAILED_HELP_RANGE, EVT_CONTEXT_MENU, wxHelpEvent,
758 wxContextMenuEvent, wxContextHelp, wxContextHelpButton, wxTipWindow,
759 and a demo to show them in action.
761 Deprecated PyShell and PyShellWindow, added a snapshot of PyCrust (see
762 http://sourceforge.net/projects/pycrust/. )
764 Added the new virtual list capabilities to wxListCtrl.
766 Added a wxSTC style editor from Riaan Booysen to the sample apps.
768 Added XRCed to the wxPython Tools directory, contributed by Roman
771 Added a new "constructor" to most of the window classes that calls the
772 default C++ constructor, (the one with no parameters) and also added the
773 corresponding Create(...) method. This allows you to do a 2-step
774 creation of windows which is sometimes required for doing things such
775 as setting extended style flags before the window is created, or for
776 passing the object to the XRC resource system to be created from the
777 resource. The name of the new "constructor" is the original name of
778 the class with a "Pre" in it. For example, wxPreWindow, wxPreFrame,
781 Updated to version 1.40 of Scintilla and updated wxStyledTextCtrl
782 accordingly. While doing this update I dropped the wxLB_SORT style
783 from the wxListBox created for the AutoComplete functionality. This
784 means that you will have to sort the keyword lists yourself, but you
785 are free to do case sensitive or case insensitive sorts and set the
786 wxSTC flag accordingly.
788 Updated wxColumnSorterMixin to also be able to place sort icons on the
789 column headers, and updated the wxListCtrl demo to show it off by
790 using wxColumnSorterMixin.
792 Added wxGenBitmapTextButton, TablePrint, etc. contribs from Lorne White.
794 Added wxNativeFontInfo and wxFontMapper.
796 Added pySketch to the samples.
798 Significantly changed how the Python interpreter lock and thread state
799 are managed, which should fix the problem of running on a
800 multi-processor machine.
802 Added wxPyLog so log targets can be created in Python to handle log
803 messages however is wished. See demo/Main.py for an example.
805 Added wxFindReplaceDialog.
807 The second phase of OOR is implemented for wxEvtHandler, wxSizer,
808 wxShape and derived classes. This means that functions and methods
809 that return an object derived from wxEvtHandler that was originally
810 created in Python, will return the original Python object (if it still
811 exists) instead of letting SWIG wrap a new shadow object around the
812 original C++ pointer.
814 Added some optimization methods to wxDC: GetBoundingBox, DrawLineList,
817 Added a set of sophisticated Error Dialogs from Chris Fama.
819 Added wxRightTextCtrl from Josu Oyanguren to wxPython.lib for aligning
820 text in a wxTextCtrl to the right side.
822 Added wxURLDataObject and an example showing drag and drop of URLs to
823 and from web browsers. It's still not 100% bullet-proof for all types
824 of browsers, but it works for the majority of cases with the popular
825 browsers on Windows. On wxGTK it seems that only Netscape 4.x works,
826 if anybody has any suggestions about this please bring it up on the
831 Added wxMimeTypesManager and wxFileType.
833 Passing None for the handler parameter to one of the EVT_** functions
834 will now Disconnect the event.
836 Added wxPopupWindow and wxPopupTransientWindow.
840 Added wxDynamicSashWindow, which allows you to endlessly split windows
841 by dragging a little tab next to the scrollbars. Added a demo to show
842 this and also the ability of multiple wxStyledTextCtrls to share the
845 Added wxEditableListBox gizmo.
847 Updated wxEditor with lots of enhancements from Steve Howell and Adam
850 Added the "SplitTree gizmos" which are a collection of classes that
851 were designed to operate together and provide a tree control with
852 additional columns for each item. The classes are
853 wxRemotelyScrolledTreeCtrl, wxTreeCompanionWindow,
854 wxThinSplitterWindow, and wxSplitterScrolledWindow, some of which may
855 also be useful by themselves.
857 Added wxDllWidget from Vaclav Slavik which allows wx widgets derived
858 from wxWindow to be loaded from a C++ .dll (or .so) and be used in a
859 wxPython program, without the widget having to be SWIGged first. The
860 visible API of the widget is limited to wxWindow methods plus a
861 SendCommand method, but it is still quite powerful. See
862 wxPython/contrib/dllwidget and wxPython/demo/dllwidget for more
870 Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
871 code can get access to the edit control when it is created, (to push
872 on a custom event handler for example.)
874 Added wxTextAttr class and SetStyle, SetDefaultStyle and
875 GetDefaultStyle methods to wxTextCtrl.
877 Added ability to use xml resource files. Still need to add ability to
878 subclass wxXmlResourceHandler, etc...
880 Added wxGridAutoEditMixin to the mixins library package.
882 Made ColourSelect be derived from wxButton.
884 Fixed img2py to work correctly with Python 2.1.
886 Added enhanced wxVTKRenderWindow by Prabhu Ramachandran
892 Removed initial startup dependency on the OpenGL DLLs so only the
893 glcanvasc.pyd depends on them, (on wxMSW.)
895 Changed wxFont, wxPen, wxBrush to not implicitly use the
896 wxThe[Font|Pen|Brush]List objects behind the scenes, but to use normal
899 Exposed the wxThe[Font|Pen|Brush]List to wxPython.
901 Also added wxTheColourDatabase and added a library module (in the
902 wxPython.lib.colourdb module) to load LOTS more colour names into the
905 Added wxWakeUpMainThread, wxMutexGuiEnter, wxMutexGuiLeave,
906 wxMutexGuiLocker and wxThread_IsMain to assist with dealing with GUI
907 access from non-GUI threads.
909 wxPyOnDemandOutputWindow is now (more) thread safe if non-GUI threads
910 use print, sys.stdout.write, etc.
912 Added CreateTextSizer and CreateButtonSizer to wxDialog
914 Added wxPython/lib/infoframe.py from Chris Fama. It contains a class
915 that can be used in place of wxPyOnDemandOutputWindow.
917 Added colourselect.py, imagebrowser.py and an updated calendar.py to
918 wxPython/lib from Lorne White.
920 Added patch to wxPoint_LIST_helper from Tim Hochberg that should make
921 it gobs faster in certain situations.
923 Added tools that will take an image file in a wx supported format and
924 convert it to data embedded in a Python source file. The image is
925 converted to XPM format which is essentially a list of strings
926 containing info about each pixel. The image's transparency mask is
927 included, if there is one, or a mask can be added if a mask colour is
928 specified on the command line. It is then pickled and optionally
929 compressed and written to a Python source file along with functions to
930 convert it to either a wxBitmap or a wxImage. See
931 wxPython/demo/images.py for examples, and wxPython/Tools/img2py.py for
934 Fixed wxStyledTextCtrl to be much faster on wxGTK. There was some
935 experimental code that got left in place that ended up causing way too
938 A couple more hacks in my_distutils.py so wxPython can be built with
939 the distutils that comes with Python 2.1.
941 Added a ton of missing methods for wxPrintData.
943 Switched to InnoSetup for MSW distributions.
945 Added wxToggleButton.
947 Fixed bug that prevented wxTreeCtrl.OnCompareItems from being called.
949 Added some methods to wxGrid:
950 GetCellHighlightPenWidth
951 GetCellHighlightROPenWidth
952 SetCellHighlightPenWidth
953 SetCellHighlightROPenWidth
955 GetGridRowLabelWindow
956 GetGridColLabelWindow
957 GetGridCornerLabelWindow
959 Added wxGetClientDisplayRect which on wxMSW returns a wxRect
960 representing the area on screen not occupied by the taskbar and such.
961 On other platforms it is equivallent to wxGetDisplaySize.
964 Implemented the first phase of OOR (Original Object Return). See
965 the text in the demo for more details of what this means, but in a
966 nutshell methods such as wxWindow.GetParent or FindWindowById will
967 now return a shadow object of the proper type if it can. By
968 "proper type" I mean that if the wxWindow pointer returned from
969 FindWindowById really points to a wxButton then the Python object
970 constructed will be of a wxButtonPtr class instead of wxWindowPtr
971 as before. This should reduce or eliminiate the need for
972 wxPyTypeCast. (Woo Hoo!) The objects returned are still not the
973 original Python object, but that is the next step. (Although it
974 will probably only work on Python 2.1 and beyond because it will
975 use weak references.)
977 This first phase of the OOR plan is fairly significant and has
978 required a lot of changes all over wxPython, most of which should
979 be transparent to you, however I'm not 100% sure that it didn't
980 introduce any new bugs that are hiding somewhere and didn't get
981 stomped on during my testing. So please be sure to test everything
982 thoroughly when you install this version and be sure to report any
983 object-type related oddities to me.
986 There is now a wxObject class that most other classes derive from like
987 in C++, but the methods provided don't really match but are wxPython
988 specific. It could have been added long ago but OOR required it so it
991 Finally added wxPyLineShape.GetLineControlPoints, which has been on my
992 list for a while. The above OOR modification made this easier.
994 Fixed the __cmp__ methods for wxPoint and others.
998 Added the wxPython.lib.mixins package to the library, it is where
999 useful mix-in classes can be placed. Currently there is one to help
1000 make the columns in a wxListCtrl sortable, and the MagicIMageList from
1001 Mike Fletcher. If you have any custom code that can be factored out
1002 of existing classes into a mix-in that would be useful to others
1003 please send it to me for inclusion in this package.
1005 Added a few little sample applications to help newbies to get started
1006 by having smaller functional apps to play with. They can be found in
1015 No changes happened in the Python wrappers for this release, only
1016 changes and fixes in the wxWindows library.
1023 New typemaps for wxString when compiling for Python 2.0 and beyond
1024 that allow Unicode objects to be passed as well as String objects. If
1025 a Unicode object is passed PyString_AsStringAndSize is used to convert
1026 it to a wxString using the default encoding.
1028 Fixed the generic buttons so tool tips work for them.
1030 Fixed a bug in the demo's tree control.
1032 Added a listbox to the listbox demo that shows how to find items with
1033 a matching prefix as keys are typed.
1035 Added code to the wxListCtrl demo to show how to get text from a
1036 column in report mode.
1038 Added code to the toolbar demo to clear the long help from the status
1039 bar after 2 seconds.
1043 Fixed wxTimer so it can be used as described in the docs, either with
1044 a Notify method in a subclass, or sending an event to a wxEvtHandler
1045 object, (usually a window.)
1047 Added wxNotifyEvent.Allow()
1049 Fixed GOBS of reference leaks.
1051 Massive code changes and cleanup to allow wxPython to be split into
1052 multiple extension modules again. A Python CObject is used to allow
1053 the "export" of SWIG functions and other common helper functions from
1054 the wxc module to other modules, even if they are in separate shared
1055 libraries. Should also be usable from 3rd party code, just include
1056 wxPython/src/export.h
1058 Changed the default setup so the following are built as separate
1059 extension modules: calendar, glcanvas, grid, html, ogl, stc, and
1060 utils. Will probably add more later.
1062 Changed the wxPrinterDC to use the new constructor taking a
1063 wxPrintData object. The old ctor is still there using the
1066 Added wxPython.lib.anchors.py from Riaan Booysen. It contains a class
1067 that implements Delphi's Anchors with wxLayoutConstraints.
1069 Added wxPython.lib.fancytext from Timothy Hochberg.
1071 Changed the GenericButtons to send their event in idle time, so the
1072 mouse won't be captured when the event handler is called.
1074 Added wxPython.lib.rpcMixin from Greg Landrum, although it's not
1075 integrated with the demo yet. It allows a wxPython GUI to be an
1083 Significantly changed how the wxStyledtextCtrl code that wraps
1084 Scintilla is implemented. Most of it is now automatically generated
1085 from an interface definition file provided by Scintilla. This means
1086 that it will be much easier to stay in sync with new Scintilla
1087 releases, but also means that some of the method and identifier names
1088 have changed. See wxPython/demo/data/stc.h for a copy of the C++
1089 interface from which the Python interface is generated. There is now
1090 some inline documentation in that file that should really help explain
1093 I am now using the Python Distutils to build wxPython and to make some
1094 of the distribution files. (See http://www.python.org/sigs/distutils-sig/)
1095 This means no more messing with my kludgy build.py/Makefile hack,
1096 builds will be more consistent with other Python extensions that also
1097 use Distutils, and will hopefully make wxPython easier to build for
1098 platforms where there have been troubles before. If you are building
1099 wxPython for Python 1.5.2 or for 1.6, then you will need to get and
1100 install version 1.0 of Distutils from the website above. If you are
1101 using Python 2.0 then you already have it.
1103 Added wxInputStream and the wxFileSystem family of classes,
1104 contributed by Joerg Baumann.
1106 Added wxProcess and support for it to wxExecute. wxProcess lets you
1107 get notified when an asyncronous child process terminates, and also to
1108 get input/output streams for the child process's stdout, stderr and
1111 Removed the old python sizers.
1113 Added __add__, __sub__ and __cmp__ (equality check only) for wxPoint
1116 Changed the build to make one big extension module instead of one for
1117 the core and each contrib. This allowed me to do away with the
1118 libwxPyHelpers.so on unix systems.
1120 Lots of little fixes here and there.
1122 Some hacks on wxGTK to try and make the AutoComplete listbox in the
1123 wxStyledTextCtrl to behave better. It's still not as nice as on
1124 wxMSW, but at least it's a bit more usable now.
1132 Various tweaks, fixes, missing methods, etc.
1134 Added example use of wxTaskBarIcon to the demo.
1141 Added wxLog and friends.
1143 Added wxFrame.ShowFullScreen for MSW.
1145 Added PyShellWindow to the wxPython.lib package.
1152 Added an attribute named labelDelta to the generic buttons that
1153 specifies how far to offset the label when the button is in the
1156 Added wxTipProvider and friends. See the demo for an example.
1158 wxGrid can now change the cell highlight colour.
1162 Fixed printing on wxGTK.
1164 Added wxDateTime, wxTimeSpan, and wxDateSpan to wxPython.utils.
1166 Added wxCalendarCtrl.
1168 WARNING: A while back I asked what should be done about the Magic
1169 Method Names. (Methods that are automatically turned into event
1170 handlers by virtue of their name.) The consensus was that it is more
1171 confusing to have them than to try and expand them to have greater
1172 coverage. I am finally getting around to removing the code that
1173 generates the event binding. This means that if you are using any of
1174 the following method names without a EVT_* call that you need to
1175 modify your code to add the EVT_* to hook the event to the method.
1197 Fixed wxTreeCtrl.HitTest to return both the tree item as well as the
1198 flags that clairify where the click was in relation to the item.
1200 Fixed thread state problem in wxTreeCtrl.GetBoundingBox and
1203 Fixed some problems in OGL. Also wxShape.SetClientData and
1204 .GetClientData can now deal with Python objects.
1206 Added wxListCtrl.SortItems and changed the demo to show how to use it.
1208 Plugged a memory leak.
1210 Wrapped the new wxGrid and friends. The old wxGrid class is no longer
1211 available. There are some incompatibilities, and unfortunately the
1212 new classes are not documented yet, (however the methods are more
1213 consistent with each other now so you may be able to guess pretty
1216 Updated filebrowsebutton.py and calendar.py with changes from their
1217 authors. There is now a FileBrowseButtonWithHistory class (what a
1218 mouthful!) and wxCalendar has printing support.
1220 Added ActiveXWrapper to the library, and some good demos of it too.
1221 It works great for embedding a COM (a.k.a OCX, a.k.a ActiveX) control
1222 in a window and calling its methods. It actually creates a new class
1223 on the fly that derives from wxWindow, the COM CoClass and others
1224 needed to make it all work. The resulting class can be instantiated
1225 just like wxWindow, used in sizers, etc. It also responds to all COM
1226 method calls, properties, etc., and if the class or a mix-in has
1227 matching method names, then the COM events will be propogated back to
1230 Created a typemap that allows a string to be used for parameters
1231 expecting a wxColour type. The string is either a colour name as
1232 defined in the wxColourDatabase, or a colour spec of the form
1233 "#RRGGBB". See the wxStyledTextCtrl demo for an example.
1235 I almost forgot to mention the wxStyledTextCtrl! Yes, the
1236 wxStyledTextCtrl is finally in wxPython!! (And the crowd goes
1237 wild...) There's no documentaTion yet (the crowd boos and hisses...)
1238 but I've included a very readable source file in the
1239 wxPython/demo/data directory, a couple fairly good examples, and you
1240 can also refer to the Scintilla documentaion at
1241 http://www.scintilla.org/ScintillaDoc.html to help fill in the gaps
1242 until the docs are done. (The croud murmers contentedly as the tool
1243 provider smiles convincingly and removes his flame-proof suit.)
1248 What's new in 2.1.13
1249 --------------------
1250 Skipped a version number to match what has been released for wxGTK.
1252 Updated wxMVCTree and added a demo for it, also fixed layout on GTK
1253 and some flicker problems.
1255 Added a wrapper class for the Visualization ToolKit (or VTK) in the
1256 wxPython.lib.vtk module. (http://www.kitware.com/)
1258 Fixed wxTreeCtrl.SetItemImage and GetItemImage to recognise the new
1261 Added wxPython.lib.spashscreen from Mike Fletcher.
1263 Added wxPython.lib.filebrowsebutton also from Mike Fletcher.
1265 Renamed wxTreeCtrl.GetParent to GetItemParent to avoid a name clash
1266 with wxWindow.GetParent.
1268 Added wxIntersectRect to compute the intersection of two wxRect's.
1269 It is used like this:
1271 intersect = wxIntersectRect(rect1, rect2)
1273 If r1 and r2 don't intersect then None is returned, otherwise the
1274 rectangle representing the intersection is returned.
1276 Some bug fixes for Clipboard and Drag-n-Drop.
1278 Rotated text!!! WooHoo! (See wxDC.DrawRotatedText())
1280 Added a set of Generic Buttons to the library. These are simple
1281 window classes that look and act like native buttons, but you can have
1282 a bit more control over them. The bezel width can be set in addition
1283 to colours, fonts, etc. There is a ToggleButton as well as Bitmap
1284 versions too. They should also serve as a good example of how to
1285 create your own classes derived from wxControl.
1287 The C++ wxToolBar classes have been redone, and so have the wxPython
1288 wrappers. There have been slight modifications to some of the methods
1289 but shouldn't impact anybody too much. I took the opportunity to add
1290 support for setting user data on each toolbar tool. The new AddTool
1291 methods look like this:
1295 pushedBitmap = wxNullBitmap,
1298 shortHelpString = "",
1299 longHelpString = "")
1301 def AddSimpleTool(ID,
1303 shortHelpString = "",
1304 longHelpString = "",
1308 There are also corresponding InsertTool and InsertSimpleTool methods
1309 that additionally take an integer position as the first parameter.
1311 Added a wrapper for the new PCX and TIFF ImageHandlers.
1313 wxRect now simulates attributes named left, right, top and bottom.
1315 Removed all non wx stuff from the glcanvas module since DA's PyOpenGL
1316 is better and compatible with the wxGLCanvas. You can get it at
1317 http://starship.python.net:9673/crew/da/Code/PyOpenGL.
1319 Added some missing EVT functions.
1321 Added Dirk Holtwic's editor classes to the wxPython.lib.editor
1324 Changed all the "LIST" parameter names to "choices" to match the docs.
1326 More fixes for the wxFloatBar, and it now works on wxGTK even better
1327 than wxMSW! (The feat is accomplished by using the wxTB_DOCKABLE
1328 style flag instead of trying to float it ourselves.)
1333 What's new in 2.1.11
1334 --------------------
1335 Skipped a few version numbers so wxMSW, wxGTK and wxPython are all
1338 wxImage.SetData now makes a copy of the image data before giving it to
1339 wxImage. I mistakenly thought that wxImage would copy the data
1342 Fixed wxMSW's notebook so the pages get their size set as they are
1343 being added. This should remove the need for our
1344 wxNotebook.ResizeChildren hack.
1346 wxPanels now support AutoLayout, and wxNotebooks and wxSplitterWindows
1347 no longer tell their children to Layout() themselves. This will
1348 probably only effect you if you have a wxWindow with AutoLayout inside
1349 a notebook or splitter. If so, either change it to a wxPanel or add
1350 an EVT_SIZE handler that calls Layout().
1352 Fixed deadlock problem that happened when using threads.
1354 Added new HTML printing classes.
1356 Added wxWindow.GetHandle
1358 Apparently wxMouseEvent.Position has been depreciated in wxWindows as
1359 it is no longer available by default. You can use GetPositionTuple
1360 (returning a tuple with x,y) instead, or GetPosition (returning a
1363 Added wxPostEvent function that allows events to be posted and then
1364 processed later. This is a thread-safe way to interact with the GUI
1365 thread from other threads.
1367 Added Clipboard and Drag-and-Drop classes.
1369 Added wxFontEnumerator.
1371 Many updates to wxMenu, wxMenuBar.
1373 wxPyEvent and wxPyCommandEvent derived classes now give you the actual
1374 Python object in the event handler instead of a new shadow.
1376 Added a Calendar widget from Lorne White to the library.
1378 Made some fixes to the wxFloatbar. It still has some troubles on
1381 Added an MVC tree control from Bryn Keller to the library.
1388 This is a quick bug-fix release to take care of a few nasties that
1389 crept in at the last minute before 2.1.4 was called done. No new
1395 --------------------
1397 This release is NOT syncronized with a snapshot release of wxGTK or
1398 wxMSW. For MSW this isn't much of a problem since you can get the
1399 binaries from the web site. For other platforms you'll have to build
1400 wxGTK from CVS. (See http://web.ukonline.co.uk/julian.smart/wxwin/cvs.htm)
1401 To get the same set of sources from CVS that I used, checkout using
1404 Now back to what's new...
1406 Much more support for event-less callbacks and add-on modules.
1408 Created add-on module with wxOGL classes.
1410 Added wxWindow.GetChildren(). Be careful of this. It returns a *copy*
1411 of the list of the window's children. While you are using the list if
1412 anything changes in the real list (a child is deleted, etc.) then the
1413 list you are holding will suddenly have window references to garbage
1414 memory and your app will likely crash. But if you are careful it works
1417 Added a bunch of new and missing methods to wxTreeCrtl. The
1418 SortChildren method is now supported, but currently only for the
1421 Added typemaps for wxSize, wxPoint, wxRealPoint, and wxRect that allow
1422 either the actual objects or Python sequence values to be used. For
1423 example, the following are equivallent:
1425 win = wxWindow(parent, size = wxSize(100, 100))
1426 win = wxWindow(parent, size = (100, 100))
1428 Super-charged the wxHtml module. You can now create your own tag
1429 handlers and also have access to the parser and cell classes. There
1430 is a tag handler in the library at wxPython.lib.wxpTag that
1431 understands the WXP tag and is able to place wxPython windows on HTML
1432 pages. See the demo for an example.
1434 A bunch of the methods of wxMenuBar were previously ifdef'd out for
1435 wxGTK. Added them back in since the methods exist now.
1437 Wrapped the wxHtmlHelpController and related classes.
1439 Wrapped the C++ versions of wxSizer and friends. The Python-only
1440 versions are still in the library, but depreciated. (You will get a
1441 warning message if you try to use them, but the warning can be
1442 disabled.) The usage of the C++ versions is slightly different, and
1443 the functionality of wxBorderSizer is now part of wxBoxSizer. I have
1444 added a few methods to wxSizer to try and make the transition as
1445 smooth as possible, I combined all Add methods into a single method
1446 that handles all cases, added an AddMany method, etc. One step I did
1447 not take was to make the default value of flag in the Add method be
1448 wxGROW. This would have made it more backward compatible, but less
1449 portable to and from wxWin C++ code. Please see the docs and demo for
1452 Added wxPyEvent and wxPyCommandEvent classes, derived from wxEvent and
1453 wxCommandEvent. Each of them has SetPyData and GetPyData methods that
1454 accept or return a single Python object. You can use these classes
1455 directly or derive from them to create your own types of event objects
1456 that can pass through the wxWindows event system without loosing their
1457 Python parts (as long as they are stored with SetPyData.) Stay tuned
1458 for more info and examples in future releases.
1460 Added wxPython.lib.grids as an example of how to derive a new sizer
1461 from the C++ sizers. In this module you will find wxGridSizer and
1462 wxFlexGridSizer. wxGridSizer arrainges its items in a grid in which
1463 all the widths and heights are the same. wxFlexgridSizer allows
1464 different widths and heights, and you can also specify rows and/or
1465 columns that are growable. See the demo for a couple examples for how
1468 Added the wxValidator class, and created a class named wxPyValidator
1469 that should be used for the base class of any Python validators. See
1470 the demo for an example. Please note that you MUST implement a Clone
1471 method in your validator classes because of the way some things work
1472 in the underlying C++ library. I did not add wxTextValidator because
1473 of some issues of how it transfers data to and from a wxString, which
1474 in wxPython is automatically translated to and from Python strings, so
1475 there would never be a concrete wxString that would hang around long
1476 enough for the validator to do its job. On the other hand, it should
1477 be real easy to duplicate the functionality of wxTextValidator in a
1478 pure Python class derived from wxPyValidator.
1480 I've finally added a feature that has been on my list for close to two
1481 years! Ever wondered what that zero is for when you create your app
1482 object? Well now you can leave it out or explicitly set it to a true
1483 value. This value now controls what is to be done with sys.stdout and
1484 sys.stderr. A false value leaves them alone, and a true value sets
1485 them to an instance of wxPyOnDemandOutputWindow. (On windows the
1486 default is true, on unix platforms the default is false.) This class
1487 creates a frame containing a wxTextCtrl as soon as anything is written
1488 to sys.stdout or sys.stderr. If you close the window it will come
1489 back again the next time something is written. (You can call
1490 app.RestoreStdio to turn this off.) If you would rather that the stdio be
1491 redirected to a file, you can provide a second parameter to your app
1492 object's constructor that is a filename. If you want to use your own
1493 class instead of wxPyOnDemandOutputWindow you can either implement
1494 RedirectStdio() in you app class or change the value of
1495 wxApp.outputWindowClass like this:
1498 outputWindowClass = MyClass
1502 self.SetTopWindow(frame)
1505 Please see the implementation of wxPyOnDemandOutputWindow and wxApp in
1506 wx.py for more details. A few words of caution: if you are running
1507 your app in a debugger, changing sys.stdout and sys.stderr is likely
1508 to really screw things up.
1510 Added wxCaret. Unfortunately it's author has still not documented it
1511 in the wxWindows docs...
1513 Some new 3rd party contributions in wxPython.lib. PyShell, in
1514 shell.py is an interesting implementaion of an interactive Python
1515 shell in wxWindows. floatbar.py has a class derived from wxToolBar
1516 that can sense mouse drags and then reparent itself into another
1517 frame. Moving the new frame close to where it came from puts the tool
1518 bar back into the original parent. (Unfortunately there is currently
1519 a bug in wxGTK's wxFrame.SetToolBar so the FloatBar has some
1526 --------------------
1528 This release is syncronized with release 2.1 snapshot 9 of wxWindows.
1530 Switched to using SWIG from CVS (see http://swig.cs.uchicago.edu/cvs.html)
1531 for some of the new features and such. Also they have encorporated my
1532 patches so there is really no reason to stick with the current (very
1533 old) release... This version of SWIG gives the following new
1536 1. Keyword arguments. You no longer have to specify all the
1537 parameters with defaults to a method just to specify a
1538 non-default value on the end. You can now do this instead:
1540 win = wxWindow(parent, -1, style = mystyle)
1542 2. There is now an an equivalence between Python's None and C++'s
1543 NULL. This means that any methods that might return NULL will
1544 now return None and you can use none where wxWindows might be
1545 expecting NULL. This makes things much more snake-ish.
1548 There is a new build system based on a new Python program instead of
1549 raw makefiles. Now wxPython builds are virtually the same on MSW or
1550 Unix systems. See the end of this file for new build instructions and
1551 see distrib/build.py for more details.
1553 wxDC.Bilt now includes the useMask parameter, and has been split into
1554 two different versions. wxDC.BlitXY is like what was there before and
1555 takes raw coordinants and sizes, and the new wxDC.Blit is for the new
1556 interface using wxPoints and a wxSize.
1563 --------------------
1565 Added the missing wxWindow.GetUpdateRegion() method.
1567 Made a new change in SWIG (update your patches everybody) that
1568 provides a fix for global shadow objects that get an exception in
1569 their __del__ when their extension module has already been deleted.
1570 It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about
1571 line 496 if you want to do it by hand.
1573 It is now possible to run through MainLoop more than once in any one
1574 process. The cleanup that used to happen as MainLoop completed (and
1575 prevented it from running again) has been delayed until the wxc module
1576 is being unloaded by Python.
1578 I fixed a bunch of stuff in the C++ version of wxGrid so it wouldn't
1579 make wxPython look bad.
1581 wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added
1582 wxWindow.PopupMenuXY to be consistent with some other methods.
1584 Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace.
1586 You can now provide your own app.MainLoop method. See
1587 wxPython/demo/demoMainLoop.py for an example and some explaination.
1589 Got the in-place-edit for the wxTreeCtrl fixed and added some demo
1590 code to show how to use it.
1592 Put the wxIcon constructor back in for GTK as it now has one that
1595 Added wxGrid.GetCells
1597 Added wxSystemSettings static methods as functions with names like
1598 wxSystemSettings_GetSystemColour.
1600 Removed wxPyMenu since using menu callbacks have been depreciated in
1601 wxWindows. Use wxMenu and events instead.
1603 Added alternate wxBitmap constructor (for MSW only) as
1604 wxBitmapFromData(data, type, width, height, depth = 1)
1606 Added a helper function named wxPyTypeCast that can convert shadow
1607 objects of one type into shadow objects of another type. (Like doing
1608 a down-cast.) See the implementation in wx.py for some docs.
1610 Fixed wxImage GetData and SetData to properly use String objects for
1613 Added access methods to wxGridEvent.
1615 New Makefile/Setup files supporting multiple dynamic extension modules
1618 Fixes for the wxGLCanvas demo to work around a strange bug in gtk.
1620 SWIG support routines now compiled separately instead of being bundled
1628 --------------------
1629 Fixed wxComboBox.SetSelection so that it actually sets the selected
1630 item. (Actually just removed it from wxPython and let it default to
1631 wxChoice.SetSelection which was already doing the right thing.)
1633 Added the Printing Framework.
1635 Switched back to using the wxWindows DLL for the pre-built Win32
1636 version. The problem was needing to reinitialize static class info
1637 data after loading each extension module.
1639 Lots of little tweaks and additions to reflect changes to various
1642 Fixed a bug with attaching objects to tree items. Actually was a
1643 symptom of a larger problem with not obtaining the interpreter lock
1644 when doing any Py_DECREFs.
1646 wxSizer and friends. Sizers are layout tools that manage a colection
1647 of windows and sizers. Different types of sizers apply different
1648 types of layout algorithms. You saw it here first! These classes are
1649 not even in the wxWindows C++ library yet!
1655 Bug fix for ListCtrl in test4.py (Was a missing file... DSM!)
1657 Bug fix for occassional GPF on Win32 systems upon termination of a
1658 wxPython application.
1660 Added wxListBox.GetSelections returning selections as a Tuple.
1662 Added a wxTreeItemData that is able to hold any Python object and be
1663 associated with items in a wxTreeCtrl. Added test pytree.py to show
1666 Added wxSafeYield function.
1668 OpenGL Canvas can be optionally compiled in to wxPython.
1670 Awesome new Demo Framework for showing off wxPython and for learning
1673 The pre-built Win32 version is no longer distributing the wxWindows
1674 DLL. It is statically linked with the wxWindows library instead.
1676 Added a couple missing items from the docs.
1678 Added wxImage, wxImageHandler, wxPNGHandler, wxJPEGHandler,
1679 wxGIFHandler and wxBMPHandler.
1681 Added new methods to wxTextCtrl.
1683 Fixed some problems with how SWIG was wrapping some wxTreeCtrl
1690 Support for using Python threads in wxPython apps.
1692 Several missing methods from various classes.
1700 Added DLG_PNT and DLG_SZE convienience methods to wxWindow class.
1702 Added missing constructor and other methods for wxMenuItem.
1708 Just a quickie update to fix the self-installer to be compatible with
1709 Python 1.5.2b2's Registry settings.
1714 Well obviously the numbering scheme has changed. I did this to
1715 reflect the fact that this truly is the second major revision of
1716 wxPython, (well the third actually if you count the one I did for
1717 wxWindows 1.68 and then threw away...) and also that it is associated
1718 with the 2.0 version of wxWindows.
1720 I have finally started documenting wxPython. There are several pages
1721 in the wxWindows documentation tree specifically about wxPython, and I
1722 have added notes within the class references about where and how wxPython
1723 diverges from wxWindows.
1725 Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
1726 window handle. If you can get the window handle into the python code,
1727 it should just work... More news on this later.
1729 Added wxImageList, wxToolTip.
1731 Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
1734 As usual, some bug fixes, tweaks, etc.
1740 Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
1742 Various cleanup, tweaks, minor additions, etc. to maintain
1743 compatibility with the current wxWindows.
1749 Changed the import semantics from ``"from wxPython import *"`` to
1750 ``"from wxPython.wx import *"`` This is for people who are worried about
1751 namespace pollution, they can use "from wxPython import wx" and then
1752 prefix all the wxPython identifiers with "wx."
1754 Added wxTaskbarIcon for wxMSW.
1756 Made the events work for wxGrid.
1760 Added wxMiniFrame for wxGTK.
1762 Changed many of the args and return values that were pointers to gdi
1763 objects to references to reflect changes in the wxWindows API.
1765 Other assorted fixes and additions.
1773 wxPython on wxGTK works!!! Both dynamic and static on Linux and
1774 static on Solaris have been tested. Many thanks go to Harm
1775 <H.v.d.Heijden@phys.tue.nl> for his astute detective work on tracking
1776 down a nasty DECREF bug. Okay so I have to confess that it was just a
1777 DSM (Dumb Stupid Mistake) on my part but it was nasty none the less
1778 because the behavior was so different on different platforms.
1780 The dynamicly loaded module on Solaris is still segfaulting, so it
1781 must have been a different issue all along...
1788 1. Worked on wxGTK compatibility. It is partially working. On a
1789 Solaris/Sparc box wxPython is working but only when it is statically
1790 linked with the Python interpreter. When built as a dyamically loaded
1791 extension module, things start acting weirdly and it soon seg-faults.
1792 And on Linux both the statically linked and the dynamically linked
1793 version segfault shortly after starting up.
1795 2. Added Toolbar, StatusBar and SplitterWindow classes.
1797 3. Varioius bug fixes, enhancements, etc.