wx.tools.pywxrc.XmlResourceCompiler¶
Class Hierarchy¶
Inheritance diagram for class XmlResourceCompiler:

Methods Summary¶
|
|
|
Encode special characters as escaped C/Python string characters. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Just output the gettext strings by themselves, with no other |
|
|
|
Does ‘node’ contain filename information at all? |
|
|
|
Finds all files mentioned in resource file, e.g. <bitmap>filename</bitmap> |
Class API¶XmlResourceCompiler: templates = PythonTemplates()CheckAssignVar(self, widget)¶ConvertText(self, st)¶Encode special characters as escaped C/Python string characters.
n => \n r => \r t => \t => \ “ => “
Returns result as string, which is bytes in py2 or unicode in py3.
FileToString(self, filename)¶FindStringsInNode(self, parent)¶GenerateClasses(self, resourceDocument)¶GenerateEventHandlers(self, windowClass, windowName, topWindow, vars)¶GenerateInitResourcesEmbedded(self, resourceFilename, resourceDocument)¶GenerateInitResourcesFile(self, resourceFilename, resourceDocument)¶GenerateMenuBarClass(self, windowClass, windowName, topWindow, vars)¶GenerateMenuClass(self, windowClass, windowName, topWindow, vars)¶GenerateSubclasses(self, resourceDocument)¶GenerateToolBarClass(self, windowClass, windowName, topWindow, vars)¶GenerateWidgetClass(self, windowClass, windowName, topWindow, vars)¶GetMemoryFilename(self, filename)¶MakeGetTextOutput(self, inputFiles, outputFilename)¶Just output the gettext strings by themselves, with no other code generation.
MakePythonModule(self, inputFiles, outputFilename, embedResources=False, generateGetText=False, assignVariables=True)¶NodeContainsFilename(self, node)¶Does ‘node’ contain filename information at all?
ReplaceBlocks(self, input)¶ReplaceFilenamesInXRC(self, node, files, resourcePath)¶Finds all files mentioned in resource file, e.g. <bitmap>filename</bitmap> and replaces them with the memory filenames.
Fills a list of the filenames found.