Message223780
The patch adds a main function with the minimum needed to start the mainloop. It omits the 'while RUN' loop and development code for catching exceptions while running. They should never happen, and silently suppressing tracebacks is a bad idea.
The patch also deletes the unneeded sys.exit() call from _destroy. In 3.x debug builds, this call results in the following clipped warning being printed in the startup console.
while executing
"46111032_destroy"
(command for "WM_DELETE_WINDOW" window manager protocol)
These no longer occur when sys.exit() is removed.
Turtledemo works fine with these changes. |
|
Date |
User |
Action |
Args |
2014-07-23 21:24:33 | terry.reedy | set | recipients:
+ terry.reedy |
2014-07-23 21:24:33 | terry.reedy | set | messageid: <1406150673.05.0.480577347652.issue22053@psf.upfronthosting.co.za> |
2014-07-23 21:24:33 | terry.reedy | link | issue22053 messages |
2014-07-23 21:24:32 | terry.reedy | create | |
|