Display an image menu in the panel window.


MenuImage( name, value = None, tooltip=None,
                   whatsthis=None, helpURL=None, redraw =False )


name (string)
Label of the menu. This is displayed on the left.
value (string)
Value of the image menu (the image path or .XPM file that should be shown ).
tooltip (string)
Tooltip help information, also known as bubble. The content of this argument is displayed in a small dynamic box placed opened above the menu, when the cursor remains at the menu for short time. This is typically a short phrase.
whatsthis (string)
Whatsthis help information. When you click on the whatsthis icon followed by clicking on this menu, a small box opens above the menu and the content of this argument is displayed in it. This is typically a short sentence or two, which provides more information than that given by the tooltip argument. The whatsthis argument is a rich text format, which means you can embed many of the HTML tags, such as <br> for line separator and <b> for bold.
helpURL (string)
This is the HTML-URL address containing detailed help on the menu item. When you press the F1 key while the cursor is on top of this menu, the assistance help system opens and displays this page.
redraw (boolean)
Flag specifying whether to redraw the panel when you change the value. This allows inclusion of complex menus that dynamically depend on the value of this menu.

Return Value



The value parameter should be a valid image path or .XPM file.


This routine places an image menu in the panel window. The menu contains a label given by the name argument and a Show Image button. Clicking the button will cause the image specified by value to be shown. For example,
MenuImage( name = 'Image',
                   tooltip = 'Image',
                   whatsthis = 'Image',
                   helpURL = URL + '#Image',
                   value = 'D:\\1.jpg' )