groves wrote:

> Can anybody give me an example of how to import a function of module X
> in module y. And please if yu can use classes(Object oriented approach)
> would be great.
> 
> The problem is that I have created a text on canvas, and now I want
> that whenever a user right clicks on it, the option COMMAND should
> invoke a function defined in some other module say Y.

     import Y

     widget = Canvas(..., command=Y.function)

for more on this, see the tutorial:

     http://docs.python.org/tut/node8.html

</F>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to