docs: Fix for Comparing with Squirrel example code

This commit is contained in:
AURUMVORXX
2024-11-07 00:09:05 +03:00
parent f4ec811163
commit 6e76960158

View File

@@ -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)
``` ```
--- ---