Gladeui.XmlNode

Fields

None

Methods

class

new (context, name)

class

new_comment (context, comment)

add_next_sibling (new_node)

add_prev_sibling (new_node)

append_child (child)

copy ()

delete ()

get_children ()

get_children_with_comments ()

get_name ()

get_parent ()

is_comment ()

next ()

next_with_comments ()

prev_with_comments ()

remove ()

set_property_boolean (name, value)

set_property_string (name, string)

verify (name)

verify_silent (name)

Details

class Gladeui.XmlNode
classmethod new(context, name)
Parameters:
Return type:

Gladeui.XmlNode

classmethod new_comment(context, comment)
Parameters:
Return type:

Gladeui.XmlNode

add_next_sibling(new_node)
Parameters:

new_node (Gladeui.XmlNode) –

Return type:

Gladeui.XmlNode

add_prev_sibling(new_node)
Parameters:

new_node (Gladeui.XmlNode) –

Return type:

Gladeui.XmlNode

append_child(child)
Parameters:

child (Gladeui.XmlNode) –

copy()
Return type:

Gladeui.XmlNode

delete()
get_children()
Return type:

Gladeui.XmlNode

get_children_with_comments()
Return type:

Gladeui.XmlNode

get_name()
Return type:

str

get_parent()
Return type:

Gladeui.XmlNode

is_comment()
Return type:

bool

next()
Return type:

Gladeui.XmlNode

next_with_comments()
Return type:

Gladeui.XmlNode

prev_with_comments()
Return type:

Gladeui.XmlNode

remove()
set_property_boolean(name, value)
Parameters:
set_property_string(name, string)
Parameters:
  • name (str) – the name of the property to set

  • string (str or None) – the string value of the property to set

Set a property as a string in the self. Note that None string value Are simply ignored and not written in the XML.

verify(name)
Parameters:

name (str) – a string

Returns:

True if self's name is equal to name, False otherwise

Return type:

bool

This is a wrapper around Gladeui.XmlNode.verify_silent(), only it emits a g_warning() if self has a name different than name.

verify_silent(name)
Parameters:

name (str) – a string

Returns:

True if self's name is equal to name, False otherwise

Return type:

bool