Opened 4 years ago

Closed 4 years ago

#12218 closed defect (invalid)

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: Blocking:
Patch: no

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 (1)

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

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by sproaty

sample of evt_menu_open and update_ui conflicting

comment:1 Changed 4 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.

comment:2 Changed 4 years ago by sproaty

  • Resolution set to invalid
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.