AbstractButtonMixin
Base classes
Name | Children | Inherits |
---|---|---|
WidgetMixin prettyqt.widgets.widget |
Subclasses
Class | Module | Description |
---|---|---|
AbstractButton | prettyqt.widgets.abstractbutton | |
PushButtonMixin | prettyqt.widgets.pushbutton | |
ToolButton | prettyqt.widgets.toolbutton | |
RadioButton | prettyqt.widgets.radiobutton | |
CheckBox | prettyqt.widgets.checkbox |
⋔ Inheritance diagram
graph TD
1473293689216["widgets.AbstractButtonMixin"]
1473293688240["widgets.WidgetMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473245548480["gui.PaintDeviceMixin"]
1473293688240 --> 1473293689216
1473299815024 --> 1473293688240
140713234304496 --> 1473299815024
1473245548480 --> 1473293688240
140713234304496 --> 1473245548480
🛈 DocStrings
Bases: WidgetMixin
Abstract button widget base class, providing functionality common to buttons.
Source code in prettyqt\widgets\abstractbutton.py
set_icon(icon: datatypes.IconType)
Set the icon for the button.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
icon |
IconType
|
icon to use |
required |
set_icon_size(size: datatypes.SizeType)
set_style_icon(icon: widgets.style.StandardPixmapStr | widgets.QStyle.StandardPixmap, size: datatypes.SizeType = 15)
Set theme icon for the button.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
icon |
StandardPixmapStr | StandardPixmap
|
icon to use |
required |
size |
SizeType
|
icon size |
15
|