Rolf
March 4, 2018, 9:09am
1
In wxpython 4 the
*Append* /(self, id, item, subMenu, helpString=””)/
//is deprecated and we should now use
/|AppendSubMenu|(/self/, /submenu/, /text/, /help="") //instead
Given that the new method has no Id, the sub-menu
can only be //enabled, disabled, destroyed etc by//
// x = self.menuname.FindItem('Menu Text')
self.menuname.Enable(x,False)//
//for example.//
//Is there a less tortuous way of doing this?//
//Removing the Id seems to be a backward step.//
//Regards//
//Rolf//
//P.S . I appreciate that the old method does still work but for how long?
//
//
//
You created the submenu. Just store the submenu objects in an array and refer to the submenu directly. That method is a LOT less error prone than using random meaningless integers to refer to submenus.
···
On Mar 4, 2018, at 1:09 AM, Rolf <rolfofsaxony@gmail.com> wrote:
In wxpython 4 the
*Append* /(self, id, item, subMenu, helpString=””)/
is deprecated and we should now use
AppendSubMenu>(/self/, /submenu/, /text/, /help="") //instead
Given that the new method has no Id, the sub-menu
can only be //enabled, disabled, destroyed etc by
x = self.menuname.FindItem('Menu Text')
self.menuname.Enable(x,False)//
//for example.//
//Is there a less tortuous way of doing this?//
—
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.