Problem resizing a window and button placement

MRAB python at mrabarnett.plus.com
Sat Feb 24 19:49:16 EST 2024


On 2024-02-25 00:33, Steve GS via Python-list wrote:
> "Well, yes, in Python a
> variable created inside a
> function or method is local to
> that function unless you
> declare it global."
> 
> Yes, I knew that. I tried to
> global it both before the
> function call and within it.
> Same for when I created the
> variable. If I try to use it
> in the rest of the code, it
> keeps coming up as not
> declared.  In other functions,
> I can 'return' the variable
> but that apparently would not
> work for this function.
> 
> Is this type of function any
> different that that which I
> have been using?
> 
Please post a short example that shows the problem.



More information about the Python-list mailing list