function removeEvent
Warning
Removing an event also cause all event handlers to unregister.
This function will unregister an event with specified name.
Original: removeEvent
Declaration
def removeEvent(name : str)
Parameters
strname: the name of the event
Usage
import g2o
@g2o.event('onTime')
def onTimeEvt(**kwargs):
print('Calling only once')
g2o.removeEvent('onTime')
Source code in src/pyg2o/functions/event.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |