Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2fd16 commit a1a3356Copy full SHA for a1a3356
1 file changed
Mac/Tools/IDE/PythonIDEMain.py
@@ -33,13 +33,17 @@ def __init__(self):
33
for path in sys.argv[1:]:
34
self.opendoc(path)
35
try:
36
- import uthread2
+ import Wthreading
37
except ImportError:
38
self.mainloop()
39
else:
40
- main = uthread2.Thread("mainloop", self.mainloop)
41
- main.start()
42
- uthread2.run()
+ if Wthreading.haveThreading:
+ self.mainthread = Wthreading.Thread("IDE event loop", self.mainloop)
+ self.mainthread.start()
43
+ #self.mainthread.setResistant(1)
44
+ Wthreading.run()
45
+ else:
46
+ self.mainloop()
47
48
def makeusermenus(self):
49
m = Wapplication.Menu(self.menubar, "File")
0 commit comments