TMouseEvents🌶️

class TMouseEvents[source]🌶️

Bases: object

Methods🌶️

enterEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse enter events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

leaveEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse leave events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

mouseDoubleClickEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse click events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

mouseDragEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse drag events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

mouseMoveEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse move events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

mousePressEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse press events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

mouseReleaseEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse release events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

mouseTapEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse click events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool

wheelEvent(evt: TTkMouseEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive mouse wheel events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkMouseEvent) – The mouse event

Returns:

True if the event has been handled

Return type:

bool