Kaydet (Commit) a1a33564 authored tarafından Just van Rossum's avatar Just van Rossum

Cleaned uthread dependencies (jvr)

üst 0f2fd16d
...@@ -33,13 +33,17 @@ class PythonIDE(Wapplication.Application): ...@@ -33,13 +33,17 @@ class PythonIDE(Wapplication.Application):
for path in sys.argv[1:]: for path in sys.argv[1:]:
self.opendoc(path) self.opendoc(path)
try: try:
import uthread2 import Wthreading
except ImportError: except ImportError:
self.mainloop() self.mainloop()
else: else:
main = uthread2.Thread("mainloop", self.mainloop) if Wthreading.haveThreading:
main.start() self.mainthread = Wthreading.Thread("IDE event loop", self.mainloop)
uthread2.run() self.mainthread.start()
#self.mainthread.setResistant(1)
Wthreading.run()
else:
self.mainloop()
def makeusermenus(self): def makeusermenus(self):
m = Wapplication.Menu(self.menubar, "File") m = Wapplication.Menu(self.menubar, "File")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment