ImageMenuItem.setImage

Sets the image of @image_menu_item to the given widget. Note that it depends on the show-menu-images setting whether the image will be displayed or not.

class ImageMenuItem
void
setImage

Parameters

image Widget

a widget to set as the image for the menu item.

Meta