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

Skip to content

Commit a1a3356

Browse files
author
Just van Rossum
committed
Cleaned uthread dependencies (jvr)
1 parent 0f2fd16 commit a1a3356

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Mac/Tools/IDE/PythonIDEMain.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ def __init__(self):
3333
for path in sys.argv[1:]:
3434
self.opendoc(path)
3535
try:
36-
import uthread2
36+
import Wthreading
3737
except ImportError:
3838
self.mainloop()
3939
else:
40-
main = uthread2.Thread("mainloop", self.mainloop)
41-
main.start()
42-
uthread2.run()
40+
if Wthreading.haveThreading:
41+
self.mainthread = Wthreading.Thread("IDE event loop", self.mainloop)
42+
self.mainthread.start()
43+
#self.mainthread.setResistant(1)
44+
Wthreading.run()
45+
else:
46+
self.mainloop()
4347

4448
def makeusermenus(self):
4549
m = Wapplication.Menu(self.menubar, "File")

0 commit comments

Comments
 (0)