Hello,
I've noticed that you can accept menu entries (either 'normal' or
popup menus) either with the left or the mouse button. In fact, I've
just tried the middle mouse button with the same result.
I've implemented a context menu in an application and I'd like the
menu items to be accepted only through left mouse clicks. Is there any
way to do this?
I'm working with python 2.6, wxpython 2.8.10 in Ubuntu.
Probably not. wx doesn't implement any behaviors for controlling how the menu items are selected. That is all left up to the native platform and how it behaves by default.
···
On 1/13/10 3:19 AM, ibazan wrote:
Hello,
I've noticed that you can accept menu entries (either 'normal' or
popup menus) either with the left or the mouse button. In fact, I've
just tried the middle mouse button with the same result.
I've implemented a context menu in an application and I'd like the
menu items to be accepted only through left mouse clicks. Is there any
way to do this?