RadioButton

表示单选按钮的小部件,可用于从一组互斥选项中选择一个选项。RadioButton小部件支持各种类型和媒体,包括图标和图像。

A widget representing a radio button, which can be used for selecting one option from a set of mutually exclusive options. The RadioButton widget supports various types and media, including icons and images.

Props

decoratenametypedescription
redraw, livedraw_radioDrawRadioButtonHandles the drawing properties of the radio button.
livedraw_iconDrawIconHandles the drawing properties of the icon within the radio button.
livedraw_textDrawTextHandles the drawing properties of the text within the radio button.
livevalueLiveValueThe value associated with the radio button.
livemediaMediaTypeSpecifies the type of media (Image, Icon, None) for the radio button.
liveicon_walkWalkDefines the position and size of the icon within the radio button.
walkwalkWalkDefines how the widget should be positioned and sized within its parent.
liveimageImageSpecifies the image to be used for the radio button if media type is Image.
layoutlayoutLayoutSpecifies the layout properties of the widget.
animatoranimatorAnimatorHandles animations for the widget.
livelabel_walkWalkDefines the position and size of the label text within the radio button.
livelabel_alignAlignSpecifies the alignment of the label text.
livelabelStringThe text label of the radio button.
livebindStringSpecifies a binding string for the radio button state.

Event

namedescription
ClickedTriggered when the radio button is clicked.
NoneNo event.