LinkLabel

LinkLabel小部件是Button小部件的扩展,其行为类似于超链接标签。它利用了Button小部件的功能,提供了额外的方法来处理特定于链接标签的事件和操作。

The LinkLabel widget is an extension of the Button widget, designed to behave like a hyperlink label. It leverages the functionality of the Button widget, providing additional methods to handle events and actions specific to link labels.

Props

decoratenametypedescription
derefbuttonButtonThe underlying button widget that provides the core functionality for the LinkLabel.

See Button

Event

namedescription
clickedChecks if the LinkLabel has been clicked.
pressedChecks if the LinkLabel is currently being pressed.
releasedChecks if the LinkLabel has been released.