How to have multiple context menus using WxFormBuilder with WxWidgets in Python

160 views Asked by At

I am using WxFormBuilder to create code for a WxWidget-based application in Python 3.9. I would like to have two distinct popup (context) menus, but I have been unable to get WxFormBuilder to let me create a second popup menu with different menu items. (I could, of course, put the context menu items from both popups into a single popup and de-enable those that are not relevant, but this still means a cluttered and confusing context menu and makes for messier code. I'd prefer to avoid this.)

(1) Is there a way to get WxFormBuilder to support (or at least peacefully co-exist with) two separate popup menus?

(2) Is there a way to programatically hide (not simply gray out) items in a popup menu?

0

There are 0 answers