Modified ViewBox¶
Viewing Box Module
This file contains a class required for creating a viewing box enabling the user to view the data.
- Usage:
To use this module, import it and instantiate is as you wish:
from Paint4Brains.GUI.ModViewBox import ModViewBox
view = ModViewBox()
-
class
Paint4Brains.GUI.ModViewBox.ModViewBox(parent=None)¶ ModViewBox class for Paint4Brains.
This class is required for creating a viewing box enabling the user to view the data.
- Args:
- parent (class): Base or parent class
-
mouseDragEvent(ev, axis=None)¶ Mouse drag tracker
This function keep track of the mouse position and overwrites it to take the draw mode into account.
- Args:
- ev: signal emitted when user releases a mouse button.