Four complete examples are presented that demonstrate several different techniques for using UIL with Python.
AddCallback" example shows how to use UIL to build a widget hierarchy but use the Python
AddCallbackmethod to add callbacks to the UIL-created widgets.
PyEval" example shows how to use the Mrm-registered function
PyEval()in place of the Python
AddCallbackmethod to add callbacks to widgets directly from UIL. This illustrates a powerful feature of the Mrm binding--the ability to connect to predefined Python functions without writing any code.
PyRegister" example shows the use of
PyRegisterto declare a Python function to be a Mrm-registered callback function. This capability is useful for prototyping in UIL where the prototype will eventually be ported--the callbacks are migrated from Python code to C or C++, but the UIL remains the same.
__widget__symbol to enter the Python widget objects for widgets created in UIL into a Python symbol dictionary.