[wxPython-dev] wxPython2.7-win32-unicode-2.7.0.1pre.20060909-py25.exe - int object is not callable

Robin Dunn robin at alldunn.com
Sun Sep 10 16:17:06 PDT 2006


Chris Spencer wrote:
> You know what...
> 
> Ignore this.  KeyCode *should* be an attribute.  In place of
> event.KeyCode(), use event.GetKeyCode().  Or you can simply use
> "key=event.KeyCode"
> 
> I went through all of BOA and changed all instances of ".KeyCode()" to
> ".GetKeyCode()" and all works fine.

Sorry, I had intended to mention this change...  KeyCode has been an 
undocumented compatibility alias for GetKeyCode for about 3 years, and 
it probably should have been generating a deprecation warning for a long 
time now.  If people here prefer it I can switch it back to be an alias 
for GetKeyCode and add the deprecation warning.  Or I can leave it as a 
property and just mention it in the CHANGES file.

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





More information about the wxpython-dev mailing list