crash on flatmenu

Hi all.

I noticed that a crash occurs on Flatmenu in the demo.

If you click on an item in the menubar and stop mouse, you wait that popmenu is shown then press return and then exception occurs:

Traceback (most recent call last):

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 5498, in OnKeyDown

self._menu.OnKeyDown(event)

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4179, in OnKeyDown

self.OnChar(event.GetKeyCode())

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4229, in OnChar

self.DoAction(self._selectedItem)

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4845, in DoAction

raise Exception(“Invalid menu item”)

Exception: Invalid menu item

Python 2.6.4

2.8.11.0 (msw-unicode)

···


Fabio Spadaro
www.fabiospadaro.com

Hi.

···

2011/2/22 Fabio Spadaro fabiolinospad@gmail.com

Hi all.
I noticed that a crash occurs on Flatmenu in the demo.

If you click on an item in the menubar and stop mouse, you wait that popmenu is shown then press return and then exception occurs:

Traceback (most recent call last):

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 5498, in OnKeyDown

self._menu.OnKeyDown(event)

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4179, in OnKeyDown

self.OnChar(event.GetKeyCode())

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4229, in OnChar

self.DoAction(self._selectedItem)

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4845, in DoAction

raise Exception(“Invalid menu item”)

Exception: Invalid menu item

Python 2.6.4

2.8.11.0 (msw-unicode)


Fabio Spadaro
www.fabiospadaro.com

Nobody has an idea.


Fabio Spadaro
www.fabiospadaro.com

Hi

···

2011/2/23 Fabio Spadaro fabiolinospad@gmail.com

Hi.

2011/2/22 Fabio Spadaro fabiolinospad@gmail.com

Hi all.
I noticed that a crash occurs on Flatmenu in the demo.

If you click on an item in the menubar and stop mouse, you wait that popmenu is shown then press return and then exception occurs:

Traceback (most recent call last):

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 5498, in OnKeyDown

self._menu.OnKeyDown(event)

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4179, in OnKeyDown

self.OnChar(event.GetKeyCode())

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4229, in OnChar

self.DoAction(self._selectedItem)

File “C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\flatmenu.py”, line 4845, in DoAction

raise Exception(“Invalid menu item”)

Exception: Invalid menu item

Python 2.6.4

2.8.11.0 (msw-unicode)


Fabio Spadaro
www.fabiospadaro.com

Nobody has an idea.


Fabio Spadaro
www.fabiospadaro.com

There is still a bug in this sense. I tried it with wxPython vers.2.8.12.1 and Python 2.7.2.


Fabio Spadaro
www.fabiospadaro.com