[wxPython-users] Button press and release simulation

Robin Dunn robin at alldunn.com
Mon Dec 3 12:12:13 PST 2007


Fabrizio Pollastri wrote:
> Hi all,
> there is a way to simulate programmatically the press and the release of 
> a wx.Button? Expecially from the graphic point of view, in my case the 
> trigger of a EVT_BUTTON dont care. In other words, I want "to press" the 
> button from the program and in another point of the program to release 
> it. Thanks for any help.

wx.Button is not meant to be used this way, but wx.ToggleButton is.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list