eric6.E5XML.ShortcutsReader
Module implementing a class for reading an XML shortcuts file.
Global Attributes
Classes
Functions
ShortcutsReader
Class for reading an XML shortcuts file.
Derived from
XMLStreamReaderBase
Class Attributes
Class Methods
Methods
Static Methods
ShortcutsReader (Constructor)
ShortcutsReader(device)
Constructor
- device
-
reference to the I/O device to read from (QIODevice)
ShortcutsReader.__readShortCut
__readShortCut()
Private method to read the shortcut data.
ShortcutsReader.getShortcuts
getShortcuts()
Public method to retrieve the shortcuts.
- Returns:
-
Dictionary of dictionaries of shortcuts. The keys of the
dictionary are the categories, the values are dictionaries.
These dictionaries have the shortcut name as their key and
a tuple of accelerators as their value.
ShortcutsReader.readXML
readXML()
Public method to read and parse the XML document.