On 25/02/2024 03:58, Steve GS via Python-list wrote:
import tkinter as tk
Ww = None
def on_configure(*args):
global Ww
Ww = root.winfo_width()
print("Ww Inside = <" + str(Ww) + ">")
root = tk.Tk()
root.bind('', on_configure)
root.mainloop()
print("Ww Outside = <" + str(Ww)
SOLUTION FOUND!
The fix was to write the code that uses the width value and to place it into
the function itself.
Kluge? Maybe but it works.
Mischief Managed.
As for the most recent suggestion, it fails for me:
Traceback (most recent call last):
File "F:/___zInsul
On 2/25/2024 4:19 PM, Steve GS via Python-list wrote:
SOLUTION FOUND!
The fix was to write the code that uses the width value and to place it into
the function itself.
Kluge? Maybe but it works.
Right, just what I wrote earlier:
"have the function that responds to the resize event perform th
On 2024-02-25 21:19, Steve GS via Python-list wrote:
SOLUTION FOUND!
The fix was to write the code that uses the width value and to place it into
the function itself.
Kluge? Maybe but it works.
Mischief Managed.
As for the most recent suggestion, it fails for me:
Tra