A natural magnet for the craziest TKinter lovers out there

Thomas Passin list1 at tompassin.net
Thu Jan 19 00:41:42 EST 2023


On 1/18/2023 11:46 PM, Thomas Passin wrote:
> On 1/18/2023 8:56 PM, Michael Torrie wrote:
>> On 1/18/23 18:01, Dan Kolis wrote:
>>> Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C 
>>> under Ubuntu starts it up again. Click go rewrites al the fonts the 
>>> thing can find in a few windows.... Repeated.
>>>
>>
>> Not sure what you mean by "screen rewrites."
>>
>> I ran your test program here and it generates 25 windows on my machine,
>> and I can click "run" at least half a dozen times. I tried closing the
>> font windows before clicking run again, and also just leaving the
>> windows up and generating many more windows.  300 windows. No hangs here
>> at all. Fedora 35 with Mate Desktop on X11 with compositing enabled.
> 
> It could be using up some system resource.  tk could have some memory or 
> resource leak, possibly specific to the OP's machine.  Try looking at 
> system memory with the system monitor as the program goes through its 
> paces.  Maybe you will notice something suspicious.
> 

Also reduce the number of windows that get opened to a small number.  If 
there are no freezes, increase the number little by little.  This may 
give you some bounds on what's going on, or at least let your ultimate 
program work by keeping the resource use under control.



More information about the Python-list mailing list