BGE Py API

- added keyboard senser attribute "events" to replace getEventList()
- fix 2 memory leaks in the python api (was making a list but not returning it)
- setting readonly attributes didnt give a good error message.
This commit is contained in:
Campbell Barton
2009-04-09 12:53:56 +00:00
parent 3be2b8995e
commit e14e66f041
3 changed files with 27 additions and 15 deletions

View File

@@ -205,9 +205,9 @@ def addActiveActuator(actuator, activate):
@type activate: boolean
@param activate: whether to activate or deactivate the given actuator.
"""
def sendMessage(subject, body="", to="", from=""):
def sendMessage(subject, body="", to="", message_from=""):
"""
Sends a message.
Sends a message to sensors in any active scene.
@param subject: The subject of the message
@type subject: string
@@ -215,8 +215,8 @@ def sendMessage(subject, body="", to="", from=""):
@type body: string
@param to: The name of the object to send the message to (optional)
@type to: string
@param from: The name of the object that the message is coming from (optional)
@type from: string
@param message_from: The name of the object that the message is coming from (optional)
@type message_from: string
"""
def getRandomFloat():
"""