Since you are speaking of code called by a BUTTON, the event should not be a MouseEvent, but wx.EVT_BUTTON**.**
···
2008/4/22, andrew cooke andrew@acooke.org:
Hi,
I have a Dialog which contains some TextCtrls, with Validators, and an OK
Button. When I display the Dialog modally and click on “OK” the
validators are called.However, if I display the Dialog using Show() and then programatically called
ok.ProcessEvent(wx.MouseEvent(wx.wxEVT_LEFT_DOWN))
ok.ProcessEvent(wx.MouseEvent(wx.wxEVT_LEFT_UP))
(where ok is the Button) the Validators are not called (more exactly, the
TransferToWindow methods are called on Dialog.Show(), but the Validate andTransferFromWindow methods are not called on the mouse events).
I guess that I am not raising the event expected. What should I be doing
instead?Thanks,
Andrew
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users