I know there have been a few threads over the years about this: being able to send a command to have a wx.Button push event and actually have that cause the button to appear “depressed”, as it does when a user clicks on it. I saw in this thread (http://www.manning-sandbox.com/message.jspa?messageID=51692) from 2006 that it was a possible GSoC project to expose the native APIs to wx to do this, and I’m guessing it hasn’t yet happened, but just checking.
Not crucial for me, but am considering a short-cut that would circumvent a few actions, including a button push, so I thought it might be nice user visual feedback to see the button pushing itself in. I don’t want to use the generic button, as I feel the native look is nicer.
No, but if you don't mind platform specific code you can use button.GetHandle() for the native handle to pass to the native APIs.
···
On 11/4/11 12:22 PM, C M wrote:
I know there have been a few threads over the years about this: being
able to send a command to have a wx.Button push event and actually have
that cause the button to appear "depressed", as it does when a user
clicks on it. I saw in this thread
(ウマトピ) from 2006
that it was a possible GSoC project to expose the native APIs to wx to
do this, and I'm guessing it hasn't yet happened, but just checking.