Strange behavior of wxGrid

Under Windows, with wxPython 2.8.4.2, I observed the following strange
behavior of wxGrid: If wx.MessageBox is called in an grid event
handler, the content of the current cell sometimes is set to be empty.

Using the attached test, you can see the phenomenon by following the steps:

1. Click any cell, e.g. C5
2. Input a any content
3. Click in any other cell, so the CellEditor in C5 is disabled
4. Click once in C5 again
5. Press TAB and see what happens.

Stranger still, this happens only after ONCE after EACH cell content
change. For example, in the example, you can input several values, and
then try the TAB on any one of them, and the value will disappear. Now
you try the same on the remaining values, it doesn't happen again,
until you make change to some cell.

Under Linux this problem doesn't exist.

Can someone give an explanation of this? I am relying on it to display
error messages when the user modifies a cell in the undesired way.

Thanks!

testwx.py (920 Bytes)

···

--
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn