GuiMenuItem#

class pyconverter.xml2py.ast_tree.GuiMenuItem(element, parse_children=True)#

Provides the GUI menu item element.

Methods

GuiMenuItem.find(_type[, terms])

Find the first type matching a given type string.

GuiMenuItem.find_all(_type[, recursive, terms])

Find all types matching a given type string.

GuiMenuItem.get(entry)

Get an item from an element.

GuiMenuItem.has_children()

Return wether the element has children.

GuiMenuItem.print_tree()

Print the tree.

GuiMenuItem.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

GuiMenuItem.to_rst([prefix, links, ...])

Return a string to enable converting the element to an RST format.

GuiMenuItem.types_repr()

Return the string types.

Attributes

GuiMenuItem.added

Has the revision flag added.

GuiMenuItem.any_isalnum

Returns True if any characters are alphanumeric.

GuiMenuItem.children

Children of the tree.

GuiMenuItem.content

Text content.

GuiMenuItem.id

ID of the element.

GuiMenuItem.next_elem

Next element.

GuiMenuItem.prev_elem

Previous element.

GuiMenuItem.raw

Raw string of the element.

GuiMenuItem.tag

Element tag.

GuiMenuItem.tail

Tail of the element as a string.

GuiMenuItem.text_content

Text content.

GuiMenuItem.title

Element title.

GuiMenuItem.tostring

Attributes of the element as a dictionary.