Hi All,
The next preview build of wxPython is now available at
http://starship.python.net/crew/robind/wxPython/preview/2.5.1.0p8/
There are not very many real visible changes in this preview since the
last one, but there have been a number of behind the scenes changes,
changes to track new modifications to the C++ lib, and of course lots
of bug fixes. A few of the more notable things:
* Menu and toolbar items can now be given an ID of -1 and they will
then generate a new ID for themselves, similar to how windows do.
To accommodate this the value of wx.ID_SEPARATOR was changed to -2,
(it was -1.) The various methods for adding items to a wx.Menu will
now return a reference to the wx.MenuItem (toolbar already did this)
and so you can use the item for binding events without having to
track IDs. For example, instead of this::
menu.Append(wx.ID_EXIT, "E&xit", "Terminate the App")
self.Bind(wx.EVT_MENU, self.OnExit, id=wx.ID_EXIT)
you can do this::
item = menu.Append(wx.ID_EXIT, "E&xit", "Terminate the App")
self.Bind(wx.EVT_MENU, self.OnExit, item)
or even this::
item = menu.Append(-1, "E&xit", "Terminate the App")
self.Bind(wx.EVT_MENU, self.OnExit, item)
* Updated the AnalogClockWindow with many enhancements from
E. A. Tacão.
* wxMac now has wx.ToggleButton!
* wx.stc.StyledTextCtrl has been updated to version 1.58 of Scintilla.
* On the wx.stc.StyledTextCtrl performance issues on wxMac: I wasn't
able to find a way to quickly measure the fully antialiased fonts
with enough accuracy, so instead I reimplemented the current
algorithm in a slightly more efficient manner. Since it is still
something that will take O(n^2) time I've added a SetUseAntiAliasing
method (and GetUseAntiAliasing too) that will turn off the use of
antialiased fonts in the wxSTC, allowing it to bypass the slow text
measuring routines and use the fast and simple one instead. By
default the setting is turned off. When run on OSX The Py* apps
have a new item on the Options menu for controlling this setting if
you would like to experiment with it.
* Lot's of docstrings added. A *ton* more to go. Riaan has sent me a
script he has started on for converting the metadata to reference
docs, but I haven't been able to spend much time on furthering it
yet. Consequently the C++ docs are still included with this
preview, and probably will be for the release as well, but we are
definitely on the road to making that not be necessary any more.
I've been real pleased with the modifications I made to SWIG to
facilitate this work, it is progressing well.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!