XtInitialize must be called as Xt. Xt and Xm functions with a widget parameter are changed into widget methods, with the widget parameter removed, even if it is not the first parameter. Xt functions with a widget class parameter are changed into widget class methods. Parameters, return values, and resources of type XmString are replaced by ordinary Python strings. Parameters representing structures are replaced by Python tuples.
Some functions accept a partially filled struct with a flag describing which members are filled in.
This is represented by a dictionary where the key is the name of the struct members to be filled in, and the value the value of these members. No flag is used. Pairs of parameters describing arrays of strings or structures are replaced by a Python list of strings or tuples. Output parameters are always replaced by Python function return values. If there is more than one output parameter, a tuple is constructed.