本文整理汇总了Python中collada.E.comments方法的典型用法代码示例。如果您正苦于以下问题:Python E.comments方法的具体用法?Python E.comments怎么用?Python E.comments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类collada.E
的用法示例。
在下文中一共展示了E.comments方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from collada import E [as 别名]
# 或者: from collada.E import comments [as 别名]
def __init__(self, author=None, authoring_tool=None, comments=None, copyright=None, source_data=None, xmlnode=None):
"""Create a new contributor
:param str author:
The author's name
:param str authoring_tool:
Name of the authoring tool
:param str comments:
Comments from the contributor
:param str copyright:
Copyright information
:param str source_data:
URI referencing the source data
:param xmlnode:
If loaded from xml, the xml node
"""
self.author = author
"""Contains a string with the author's name."""
self.authoring_tool = authoring_tool
"""Contains a string with the name of the authoring tool."""
self.comments = comments
"""Contains a string with comments from this contributor."""
self.copyright = copyright
"""Contains a string with copyright information."""
self.source_data = source_data
"""Contains a string with a URI referencing the source data for this asset."""
if xmlnode is not None:
self.xmlnode = xmlnode
"""ElementTree representation of the contributor."""
else:
self.xmlnode = E.contributor()
if author is not None:
self.xmlnode.append(E.author(str(author)))
if authoring_tool is not None:
self.xmlnode.append(E.authoring_tool(str(authoring_tool)))
if comments is not None:
self.xmlnode.append(E.comments(str(comments)))
if copyright is not None:
self.xmlnode.append(E.copyright(str(copyright)))
if source_data is not None:
self.xmlnode.append(E.source_data(str(source_data)))