Ww Inside = <250>
Ww Inside = <249>
Ww Inside = <250>
Ww Outside =
<1770662408256on_configure>
Here is my result...
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Sunday, February 25,
2024 6:40 PM
To: python-list@python.org
Subject: Re: Problem resizing
Musta misstit
I had thought of that before I
started the discussion but
figured it would take more
code than it finally needed.
I guess I was also
variable-dependent thinking
that I would need the result
elsewhere in the code. So
far, I see that I don't need
the value.
Then there is that di
On 26/02/2024 07:56, Steve GS via Python-list wrote:
> Then there is that discovery
> element: Why is my original
> idea not working? I still
> cannot pass the value back
> from the function. What is
> different about this function
> that others would have given
> me the value?
There is nothing
Although your code produces the value of Ww outside the function, I do not see
how I can use the value of Ww unless I close the program.
import tkinter as tk
Ww = None # What does this do? Why not Integer?
WwZ = None
def on_configure(*args):
global Ww
global WwZ
Ww = ro
On 26/02/2024 11:02, Steve GS via Python-list wrote:
> Although your code produces the value of Ww outside the function,
> I do not see how I can use the value of Ww unless I close the program.
You have to use a function that operates inside the mainloop.
Thats the nature of event driven programs
On 2/26/2024 6:02 AM, Steve GS via Python-list wrote:
Although your code produces the value of Ww outside the function, I do not see
how I can use the value of Ww unless I close the program.
The configuration event hasn't fired at the time you include the print
statement in the handler's def
>> The configuration event
hasn't fired at the time you
include the print statement in
the handler's def block, and
therefore the print function
inside your handler hasn't
invoked. It won't be invoked
until you resize the window.
Exactly
>> There is no point (really?)
to saving the width and