Modifying TKinter widgets defined in Modules

Marcus Schneider mschneider.pad at t-online.de
Fri Aug 15 16:51:25 EDT 2003


Sorry if this is an extremely stupid question:

I produced some Python modules with TKinter stuff and now I want to
use that from my main program. The windows have wuite some user
interaction. It's easy to bring them to the screen, but how do I make
the communication (i.e. variables) between the main and the modules
happen?

Currently I call a function from the main and pass all variables in
the function call, but with more then 25 variables this looks odd.

And now I have to change variables in the main from the module and
that doesn work at all, does it?

Or can I access widget definitions from the main??

What is the usual, elegant way to handle that?

Thanks for any hint ;)




More information about the Python-list mailing list