This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author j.lahav
Recipients gpolo, j.lahav, serhiy.storchaka
Date 2020-08-25.12:23:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598358221.58.0.0866491892705.issue41632@roundup.psfhosted.org>
In-reply-to
Content
Observation:
After creating around 10000 widgets (verified with ttk.Label), no more widgets get created, and sometimes graphical artifacts appear outside the application window.

No error message or exception is raised.

Expected:
Either the limit can be removed (having dynamically created 10000 widgets in data heavy applications is sometimes desired), or at least document and return runtime errors to prevent the weird behavior.

Reproduction:
This is the problematic part:
for _ in range(10000):
    ttk.Label(root, text='problematic')

A full minimal example code is attached, though a better effect can be seen when running the above two lines in the context of a more advanced Tkinter application.
History
Date User Action Args
2020-08-25 12:23:41j.lahavsetrecipients: + j.lahav, gpolo, serhiy.storchaka
2020-08-25 12:23:41j.lahavsetmessageid: <1598358221.58.0.0866491892705.issue41632@roundup.psfhosted.org>
2020-08-25 12:23:41j.lahavlinkissue41632 messages
2020-08-25 12:23:41j.lahavcreate