Phoenix Logo

phoenix_title wx.tools.pywxrc.XmlResourceCompiler


class_hierarchy Class Hierarchy

Inheritance diagram for class XmlResourceCompiler:


method_summary Methods Summary

CheckAssignVar  
ConvertText  
FileToString  
FindStringsInNode  
GenerateClasses  
GenerateEventHandlers  
GenerateInitResourcesEmbedded  
GenerateInitResourcesFile  
GenerateMenuBarClass  
GenerateMenuClass  
GenerateSubclasses  
GenerateToolBarClass  
GenerateWidgetClass  
GetMemoryFilename  
MakeGetTextOutput Just output the gettext strings by themselves, with no other
MakePythonModule  
NodeContainsFilename Does ‘node’ contain filename information at all?
ReplaceBlocks  
ReplaceFilenamesInXRC Finds all files mentioned in resource file, e.g. <bitmap>filename</bitmap>

api Class API



XmlResourceCompiler: templates = PythonTemplates()

Methods



CheckAssignVar(self, widget)


ConvertText(self, st)


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.