Reputation: 849
I have a GUI layout that has two dependencies on the screen size: line numbering and tab sizing. When the screen is resized however, I have to manually update winfo_height()
and winfo_width()
to change the layout by calling it directly. After searching the interwebs I think I should use update_idletasks
, but how exactly do you use this method?
Upvotes: 0
Views: 1725
Reputation: 386200
update_idletasks
merely runs any pending ‘idle' tasks, such as screen redraws.
I don't think there is any way to get a notification of when the resolution of the screen changes, is that what you are looking for?
Upvotes: 1