Changes between Version 1 and Version 2 of documentation/PythonManual/Contexts

Show
Ignore:
Author:
lloydw (IP: 203.96.63.172)
Timestamp:
04/01/08 12:26:32 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/PythonManual/Contexts

    v1 v2  
    7171== Accessing contexts == 
    7272 
    73 Existing contexts can be accessed in Python with the ''GetContext()'' function in the Rocket module
     73Existing contexts can be accessed in Python via the contexts member on the rocket module. They can then be accessed via name or index
    7474 
    7575{{{ 
    76 context = rocket.GetContext("hud") 
     76context = rocket.contexts["hud"] 
    7777}}} 
     78 
     79List all contexts 
     80{{{ 
     81for context in rocket.contexts: 
     82  print context.name 
     83}}}