[wxPython-dev] Why is wx.GetNumberFromUser deprecated?

Robin Dunn robin at alldunn.com
Thu Jul 6 14:49:16 PDT 2006


Amaury Forgeotdarc wrote:
> Hello,
>  
> When using wx.GetNumberFromUser, I get the warning message:
>     DeprecationWarning: <function GetNumberFromUser at 0x01BD87F0> is 
> deprecated
> and indeed, the function is marked as such in _functions.i.
>  
> Is there a replacement for it ?
> I tried to use wxNumberEntryDialog instead, but it is not wrapped by 
> wxPython.

Because the declaration of the C++ class is wrapped in 
WXWIN_COMPATIBILITY_2_4 ifdef's and this is automatically turned off in 
2.7.

I tried to find any notes about why it was deprecated, but all I could 
find leads me to believe that it is not really deprecated, but just 
moved to a different header file.  So I'll remove the wxPython 
deprecation and change things so it finds the new declaration in 2.7.

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





More information about the wxpython-dev mailing list