In my application I want to create buttons, minus the whole button part. Like clicking a URL, I guess, with some basic functionality like a subtle change in color or style upon hover/click.
I've accomplished this so far with wx.StaticText, but my problem is in getting a left click event to be recognized. Here's the relevant code:
self.text = wx.StaticText(self.background, -1, 'Text test')
self.text.Bind(wx.EVT_COMMAND_LEFT_CLICK, self.DoSomething)
It just doesn't have any effect at all. Any ideas or alternatives?
edit: Got it. Should have called wx.EVT_LEFT_UP.