Hi,when I created a StaticBitmap, and a combobox. I had the idea that, as I would to change the image in StaticBitmap, from another event.
From combobox.
my code of StaticBitmap
From combobox.
my code of StaticBitmap
self.m_bitmap1 = wx.StaticBitmap(self, wx.ID_LOGO, wx.Bitmap(u"example.png", wx.BITMAP_TYPE_ANY),
wx.DefaultPosition, wx.DefaultSize, 0)
self.m_bitmap1.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_ACTIVEBORDER))
self.m_bitmap1.SetToolTip(u"logo of example")
bSizer6.Add(self.m_bitmap1, 0, wx.ALIGN_CENTER | wx.ALL, 5)event of combobox def option_combo(self, event):
selection = self.comboBox_Dir.GetSelection()
if selection == 0:
pass # change image in StaticBitmap
#print(selection)
#event.Skip()
