Widget access
Steve Holden
steve at holdenweb.com
Thu Jun 29 08:41:35 EDT 2006
arvind wrote:
> how to make the widgets defined inside the function available outside
> it without using OOPs concept?
>
Only ways to have something created in function available outside are a)
have function store widget refs in global (poor coupling), b) have
mutable function argument into which function places widget references,
or c) return references to widgets as (part of) function value.
It usually boils down to a choice between b) and c).
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list