wxXrcWriter

Rationale

wxPython is a great tool to do cross platform GUI's with a rich set of windows. It has a feature called XRC which allows you to separate the GUI design from the functional code using XML. However XML is not very easy to write or read. wxXrcWriter is a library aimed to solve this problem by providing a library which will read and write the XRC format and validate any change to the layout.

How it works

The principle idea is that it uses an XML definition in order to validate as the data it deals with is object orientated.

XML definition

The are two main types of nodes specified in the xml definition it uses which are class and param.

Both these nodes have a name attribute so it can be identified. The class node has two additional parameters which need to be specified: There are three type of parameters each denoted by the mode attribute: