wx.xml.XmlAttribute¶
Represents a node attribute.
Example: in <img src="hello.gif" id="3"/>
, src
is an attribute with value hello.gif
and id
is an attribute with value 3
.
See also
Class Hierarchy¶
Methods Summary¶
Default constructor. |
|
Returns the name of this attribute. |
|
Returns the sibling of this attribute or |
|
Returns the value of this attribute. |
|
Sets the name of this attribute. |
|
Sets the sibling of this attribute. |
|
Sets the value of this attribute. |
Properties Summary¶
Class API¶
- class wx.xml.XmlAttribute(object)¶
Possible constructors:
XmlAttribute() -> None XmlAttribute(name, value, next=None) -> None
Represents a node attribute.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor.
- Return type:
None
__init__ (self, name, value, next=None)
Creates the attribute with given name and value.
If next is not
None
, then sets it as sibling of this attribute.- Parameters:
name (string)
value (string)
next (wx.xml.XmlAttribute)
- Return type:
None
- GetName(self)¶
Returns the name of this attribute.
- Return type:
str
- GetNext(self)¶
Returns the sibling of this attribute or
None
if there are no siblings.- Return type:
- GetValue(self)¶
Returns the value of this attribute.
- Return type:
str
- SetName(self, name)¶
Sets the name of this attribute.
- Parameters:
name (string)
- Return type:
None
- SetNext(self, next)¶
Sets the sibling of this attribute.
- Parameters:
next (wx.xml.XmlAttribute)
- Return type:
None
- SetValue(self, value)¶
Sets the value of this attribute.
- Parameters:
value (string)
- Return type:
None
Properties¶