Ticket #12218 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

EVT_MENU_OPEN breaks EVT_UPDATE_UI

Reported by: sproaty Owned by:
Priority: normal Milestone:
Component: GUI-all Version: 2.8.x
Keywords: evt_menu_open evt_update_ui Cc:
Blocked By: Patch: no
Blocking:

Description

This appears to be a bug - binding EVT_MENU_OPEN will break
EVT_UPDATE_UI. The code below is a sample demonstrating the issue.
I've tested this on both Windows XP and Ubuntu 9.10 and neither work.

In evt_idle I purposely set the update event to False to disable the
menu, but as you can see, it comes through enabled. Commenting out the
call to bind EVT_MENU_OPEN fixes this.

Attachments

menu_show_test.py download (1.3 KB) - added by sproaty 3 years ago.
sample of evt_menu_open and update_ui conflicting

Change History

Changed 3 years ago by sproaty

sample of evt_menu_open and update_ui conflicting

Changed 3 years ago by sproaty

Ahem, sorry, left out a few important details.

wxPython 2.8.10.1, Python 2.6.4. GCC 4.4.1

steven@dm-steven:~$ uname -a
Linux dm-steven 2.6.31-22-generic #60-Ubuntu SMP Thu May 27 02:41:03 UTC 2010 x86_64 GNU/Linux

Same error occurs on Window XP Pro SP3.

Changed 3 years ago by sproaty

  • status changed from new to closed
  • resolution set to invalid

I just had to call event.Skip() in my menu_open event . D'oh.

Note: See TracTickets for help on using tickets.