''' crt_Module.py Last Modified: 1 May, 2013 This example module is the companion to: ImportModuleWith_crt_Reference.py ''' #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def Inject_crt_Object(obj_crt_API): # Make the crt variable global for use in multiple functions in the # module that might need access to the crt object. global crt # Associate the crt variable with the crt object passed in from the # main script. crt = obj_crt_API return #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def Test_crt_Object(): # Test using the crt object. crt.Dialog.MessageBox("I'm a function in a python module!") return "It was the worst of the best of times, it was the worst of times"