[wxPython-users] Re: wx.DateSpan question

Robin Dunn robin at alldunn.com
Mon Apr 16 10:05:57 PDT 2007


Bjoern Schliessmann wrote:
> Expo wrote:
> 
>> I have some question on wx.DateSpan and wxPython 2.8.3.0.
>>
>> wx.DateSpan().Days(2) works on 2.6 and get a TypeError on 2.8, 
> 
> Important: Which? For me, it says "TypeError: 'int' object not
> callable". In 2.8, Days is a property. To me, it looks like you
> should use "wx.DateSpan().Days = 2".

The fact that the new properties override the existing static methods is 
a bug, and will probably be reverted.  In the meantime you can use:

	wx.DateSpan(days=2)

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list