Author: bugman Date: Wed Nov 12 18:36:23 2014 New Revision: 26556 URL: http://svn.gna.org/viewcvs/relax?rev=26556&view=rev Log: The user function class menus no longer have unique wx IDs, as these are unnecessary. This conserves the small pool of unique wx IDs, as the spin viewer window is created and destroyed. Modified: trunk/gui/uf_objects.py Modified: trunk/gui/uf_objects.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/uf_objects.py?rev=26556&r1=26555&r2=26556&view=diff ============================================================================== --- trunk/gui/uf_objects.py (original) +++ trunk/gui/uf_objects.py Wed Nov 12 18:36:23 2014 @@ -96,11 +96,8 @@ # Get the user function class data object. class_data = uf_info.get_class(class_name) - # Create a unique ID. - class_id = wx.NewId() - # Create the menu entry. - class_item = build_menu_item(menu, id=class_id, text=class_data.menu_text, icon=fetch_icon(class_data.gui_icon, size='16x16')) + class_item = build_menu_item(menu, id=-1, text=class_data.menu_text, icon=fetch_icon(class_data.gui_icon, size='16x16')) # Initialise the sub menu. sub_menu = wx.Menu()