wxPython – SetBitmap() function in wxPython
In this article we are going we are going to learn about SetBitmap() function associated with wx.MenuItem class of wxPython. SetBitmap() sets the bitmap for the menu item. SetBitmap must be called before the item is appended to the menu, i.e. appending the item without a bitmap and setting one later is not guaranteed to work. But the bitmap can be changed or reset later if it had been set up initially.
Parameter Input Type Description bmp wx.Bitmap Bitmap to set for menu item. checked bool True to check and False for uncheck.