Voxel Calibration Wizard

Source code for views.CustomAction

#
# TI Voxel Viewer component.
#
# Copyright (c) 2014 Texas Instruments Inc.
#

from PySide import QtCore, QtGui

[docs]class CustomAction(QtGui.QAction): triggeredObject = QtCore.Signal(object) def __init__(self, title, data, parent = None): super(CustomAction, self).__init__(title, parent) self.data = data self.triggered.connect(self.triggerObject) @QtCore.Slot(bool)
[docs] def triggerObject(self, checked = True): self.triggeredObject.emit(self.data)