PushButton

class cgp_generic_utils.qt.PushButton(**kwargs)

Bases: PySide2.QtWidgets.QPushButton

QPushButton with custom functionalities

setIcon(image)

set the icon on the QPushButton

Parameters:image (str) – image to set on the QPushButton
setIconSize(width, height)

set the icon size

Parameters:
  • width (int) – width of the icon
  • height (int) – height of the icon