MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / MyEventNode

Class MyEventNode

python/tutorial/MyGNode/MyEventNode.py:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11from pycgraph import GNode, CStatus, GEventType
12
13class MyEventNode(GNode):
14 def run(self):
15 print('[{0}] before event notify, {1}'.format(datetime.now(), self.getName()))
16 self.notify('event1', GEventType.SYNC)
17 print('[{0}] after event notify, {1}'.format(datetime.now(), self.getName()))
18 return CStatus()

Callers 1

tutorial_eventFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected