IconLabel (hwx.gui)#

class IconLabel(icon, helptopic=None, **kwds)#

Bases: Frame

A Widget that displays an icon from an IconSet file.

An IconLabel is used to indicate a separate section in a Dialog. When clicked, it can be used to display help.

Attribute Table#

Name

Type

tooltip

property

Example

from hwx import gui

iconLabel = gui.IconLabel(
icon="dialogOptimizationDesignSpacePercentStrip-48.png",
tooltip='Tooltip displayed when cursor hovers over icon', )
show(iconLabel)
property tooltip#

The text displayed in a popup, when cursor is over the icon or text.