def candyxml(self, data): """ Load a candyxml file based on the given screen resolution. @param data: filename of the XML file to parse or XML data @returns: root element attributes and dict of parsed elements """ return candyxml.parse(data, (self.width, self.height))
def candyxml(self, data): """ Load a candyxml file based on the given screen resolution. @param data: filename of the XML file to parse or XML data @returns: root element attributes and dict of parsed elements """ attr, templates = candyxml.parse(data) if 'geometry' in attr: self.set_content_geometry(attr['geometry']) return attr, templates