Created my first button panel using wx.lib.agw.buttonpanel.
It has numerous buttons, And i need to change a specific button's image on a specific event , How can i do that ?
Currently i recreate the whole panel, looking for a better way.
Here how i create them :
for count, png in enumerate(self.pngs):
shortHelp = short_help[count]
kind = wx.ITEM_NORMAL
longHelp = long_help[count]
btn = bp.ButtonInfo(self.titleBar, wx.NewId(),
png[0], kind=kind,
shortHelp=shortHelp)
self.titleBar.AddButton(btn)
self.Bind(wx.EVT_BUTTON, OnButtonFunc[count], id=btn.GetId())
self.titleBar.AddSeparator()