Changes between Version 1 and Version 2 of WxCommon


Ignore:
Timestamp:
Aug 4, 2011, 9:45:48 AM (8 years ago)
Author:
flip
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WxCommon

    v1 v2  
    1 = The `vespa.common.wx` Library =
     1= The `vespa.common.wx_gravy` Library =
    22
    3 vespa.common.wx is a library that, as of this writing, contains some
     3vespa.common.gravy is a library that, as of this writing, contains some
    44utilities and two custom controls
    55for use in Analysis. "Custom" control is a bit of a misnomer as only one
     
    1414floating point input. (The standard control accepts only integer input.)
    1515It was added to wxPython in version 2.8.9.2 along with the rest of
    16 `wx.lib.agw`; it is not in 2.8.9.1 or any earlier versions.
     16`wx.lib.agw`; it is not in 2.8.9.1 or any earlier versions. However,
     17that version contained some bugs. We submitted patches
     18(wxPython revs [http://trac.wxwidgets.org/changeset/62685 62685] and
     19[http://trac.wxwidgets.org/changeset/62920 62920]). Our patched
     20version appeared in wxPython 2.8.11.0.
    1721
    18 Ideally we would use the version of the control in `wx.lib.agw` if it was
    19 available and fall back on a local version if not. Code like this would work:
    20 
    21 {{{
    22 #!python
    23 try:
    24     import wx.lib.agw.floatspin as floatspin
    25 except ImportError:
    26     import vespa.common.wx.widgets.floatspin.floatspin as floatspin
    27 }}}
    28 
    29 Unfortunately the standard library version contains a couple of bugs, one
    30 of which [http://trac.wxwidgets.org/changeset/62685 was patched in wxPython rev 62685] and
    31 the other of which [http://trac.wxwidgets.org/changeset/62920 was patched in wxPython rev 62920].
    32 
    33 Our local version of the code contains these patches. If and when a version
    34 of wxPython is released that contains both patches (probably 2.9.0.0), we
    35 can use the library version with code like this:
    36 
    37 {{{
    38 #!python
    39 if (wx.MAJOR_VERSION >= 2) and \
    40    (wx.MINOR_VERSION >= 9):
    41     import wx.lib.agw.floatspin as floatspin
    42 else:
    43     import vespa.common.wx.widgets.floatspin.floatspin as floatspin
    44 }}}
     22Since we only require wxPython 2.8.8.0, we can't rely on any version of
     23floatpsin being available from the wxPython library, let alone the patched
     24version.
    4525
    4626== `floatspin_multiplier` ==