[wxpython-users] problem simulating button press
by Alec Bennett other posts by this author
May 28 2009 10:49PM messages near this date
Re: [wxpython-users] pyCairo 1.8.4 requires python2.6 ?
|
Re: [wxpython-users] problem simulating button press
I'm trying to simulate a button press in my application. All I'm concerned about is making t
he button go to its hit state, and then back to normal. I guess I could do this with a timer
but wondering if there's a more graceful way.
Here's the code I'm using so far:
self.button1 = wx.Button(self.panel, -1, pos=(0, 0), label="Camera 1")
click_event = wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, self.button1.GetId())
self.button1.Command(event)
This triggers the event bound to button1, but doesn't make the button appear pressed and the
n released. Am I stuck with a timer to achieve this visual effect?
Thanks.
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Alec Bennett
Robin Dunn
Steven Sproat
|