[wxPython-users] How to know what event IDs to use in menu?

Robin Dunn robin at alldunn.com
Mon Apr 23 13:09:51 PDT 2007


Phillip Stevens wrote:
> Hi Grant,
> 
> For the reasons you mention about creating possible conflicts with
> ID's I have started using wx.NewID():

Or you can just pass -1 (or wx.ID_ANY) and wx will generate an ID for you.


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





More information about the wxpython-users mailing list