SkinningTools.UI.hoverIconButton

Module Contents

Classes

HoverIconButton

hover icon, custom tool button that can change if the mouse hovers over it or once clicked

class SkinningTools.UI.hoverIconButton.HoverIconButton(icon=QIcon(), hoverIcon=QIcon(), checked=None, orientation=0, parent=None)

hover icon, custom tool button that can change if the mouse hovers over it or once clicked

_checkState(self)

the state used when the icon is checked it will replace the current icon with the one used when its checked or not.

enterEvent(self, event)

the mouse hover enter event

Parameters

event (QEvent) – the given event

leaveEvent(self, event)

the mouse hover leave event

Parameters

event (QEvent) – the given event

setCustomIcon(self, pixmap, hover, checked=None, orientation=0)

the function that sets the correct icons to the tool can be used to override the toolbutton with new icons

Parameters
  • pixmap (QIcon) – default icon

  • hover (QIcon) – icon used for when the mouse hovers over the button

  • checked (QIcon) – icon used for when the object is checked

  • orientation (int) – orientation in degrees clockwise for the images on the control

setDisabledPixmap(self, pixmap)

the icon used for when the object is disabled

Parameters

pixmap (string/QPixmap) – path to icon