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

Werner F. Bruhin werner.bruhin at free.fr
Tue Sep 12 01:34:08 PDT 2006


Hi Robin,

Robin Dunn wrote:

> 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.

I don't really mind either way.  I would suggest to leave it as a 
property to be consistent with the other Get/Set changes you are doing.

Werner





More information about the wxpython-dev mailing list