docs: Fix for Comparing with Squirrel example code
This commit is contained in:
@@ -26,11 +26,11 @@ def evtColor(**kwargs):
|
|||||||
def testEvt(**kwargs):
|
def testEvt(**kwargs):
|
||||||
print(kwargs)
|
print(kwargs)
|
||||||
|
|
||||||
g2o.callEvent('MyTestEvent', name = 'aurumvorax', 'id' = 15)
|
g2o.callEvent('MyTestEvent', name = 'aurumvorax', id = 15)
|
||||||
# OR
|
# OR
|
||||||
g2o.callEvent('MyTestEvent', {name: 'aurumvorax', 'id': 15})
|
g2o.callEvent('MyTestEvent', {'name': 'aurumvorax', 'id': 15})
|
||||||
# OR
|
# OR
|
||||||
args = {name: 'aurumvorax', 'id': 15}
|
args = {'name': 'aurumvorax', 'id': 15}
|
||||||
g2o.callEvent('MyTestEvent', args)
|
g2o.callEvent('MyTestEvent', args)
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user