Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e504fa2

Browse files
committed
Disable python event handling in mainloop (discovered by Tasselli Marco)
1 parent fda3ace commit e504fa2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Demo/cgi/realcgitest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ def __init__(self):
1111
self.installaehandler('aevt', 'oapp', self.open_app)
1212
self.installaehandler('aevt', 'quit', self.quit)
1313
self.installaehandler('WWW\275', 'sdoc', self.cgihandler)
14+
oldparams = MacOS.SchedParams(0, 0)
1415
self.mainloop()
16+
apply(MacOS.SchedParams, oldparams)
1517

1618
def quit(self, **args):
1719
self.quitting = 1

0 commit comments

Comments
 (0)