Changes between Version 1 and Version 2 of documentation/PythonManual/Contexts
- Timestamp:
- 04/01/08 12:26:32 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/PythonManual/Contexts
v1 v2 71 71 == Accessing contexts == 72 72 73 Existing contexts can be accessed in Python with the ''GetContext()'' function in the Rocket module.73 Existing contexts can be accessed in Python via the contexts member on the rocket module. They can then be accessed via name or index. 74 74 75 75 {{{ 76 context = rocket. GetContext("hud")76 context = rocket.contexts["hud"] 77 77 }}} 78 79 List all contexts 80 {{{ 81 for context in rocket.contexts: 82 print context.name 83 }}}