A natural magnet for the craziest TKinter lovers out there

Thomas Passin list1 at tompassin.net
Wed Jan 18 23:46:38 EST 2023


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.



More information about the Python-list mailing list