no dumentation for newID !?

Hi all,
mostly I am writing wxWindows in C++ - just starting a bit with wxPython I
was surprised that there was NO documentation
about the NewId() call !
I think that this is used mainly in wxPython (not so much with C++) , right?
Maybe it should be mentioned in the 'wxPython overview' !? wiki.python.org
doesn't talk about it either ...

Thanks for everything -
Sebastian Haase

Sebastian Haase wrote:

Hi all,
mostly I am writing wxWindows in C++ - just starting a bit with wxPython I
was surprised that there was NO documentation
about the NewId() call !
I think that this is used mainly in wxPython (not so much with C++) , right?
Maybe it should be mentioned in the 'wxPython overview' !? wiki.python.org
doesn't talk about it either ...

That's an old alias for wxNewId() that I kept around even after the C++ side removed it. In the current release of wxPython using NewID should issue a deprecation warning prompting you to switch to wxNewId.

···

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

Sebastian Haase wrote:
> Hi all,
> mostly I am writing wxWindows in C++ - just starting a bit with wxPython

I

> was surprised that there was NO documentation
> about the NewId() call !
> I think that this is used mainly in wxPython (not so much with C++) ,

right?

> Maybe it should be mentioned in the 'wxPython overview' !?

wiki.python.org

> doesn't talk about it either ...

That's an old alias for wxNewId() that I kept around even after the C++
side removed it. In the current release of wxPython using NewID should
issue a deprecation warning prompting you to switch to wxNewId.

Thanks - I just found out about that - but still: Is wxNewId() used more
in wxPython that it is in C++ ? Maybe just a style questions ?

-Sebastian

Sebastian Haase wrote:

Thanks - I just found out about that - but still: Is wxNewId() used more
in wxPython that it is in C++ ?

Probably. In C++ you normally use the static event tables and they need to have static IDs.

···

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