different that repr or pprint.
what needs to happen here is to have a method for the
Widget class that will provide a valid resource
description, each subclass of widget would override
the method to deal with their specific resource
attributes
the Widget class should provide some ordering so
that 'type', 'position', 'size' comes before less
commonly used items, the actual ordering could just be
defined in a list, so it is easy to change
also, if the current values match the defaults for a
widget attribute then that attribute should not be
provided as part of the output
this method will be used among other things by the
Property Editor and poor man's gui resource editor
this type of method could be provided for all classes
that might possibly be defined in the resource file