[PythonCE] Winhandle problem with tkinter
EdwardFewell at hotmail.com
Thu Oct 20 15:48:59 CEST 2005
<< I think it is coming from deeper, possibly the operating system or the
It does not sound like a WinCE OS message. WinCE does not have a
restriction on the number of windows other than available memory, nor would
it refer to HWNDs as "winhandle slots." It sounds like either the PythonCE
Win GUI interface or Tkinter/TCL code. My guess would be Tkinter/TCL is the
culprit, trying to keep track of what windows it has created but having a
fixed pool to track the handles and not erasing entries on a destroy().
Is there a close() command? Perhaps code to clean up the winhandles is
there and being skipped by destroy()?
If you cannot find a fix, a possible workaround might hide your dialogs
instead of destroying them. Then from the application level you can set a
hard limit on the total number of dialogs you'll have created at one time
rather than create/destroy in response to user activity.
More information about the PythonCE