Cleaned uthread dependencies (jvr)

This commit is contained in:
Just van Rossum 2000-10-20 06:37:11 +00:00
parent 0f2fd16d15
commit a1a335641b

View file

@ -33,13 +33,17 @@ class PythonIDE(Wapplication.Application):
for path in sys.argv[1:]:
self.opendoc(path)
try:
import uthread2
import Wthreading
except ImportError:
self.mainloop()
else:
main = uthread2.Thread("mainloop", self.mainloop)
main.start()
uthread2.run()
if Wthreading.haveThreading:
self.mainthread = Wthreading.Thread("IDE event loop", self.mainloop)
self.mainthread.start()
#self.mainthread.setResistant(1)
Wthreading.run()
else:
self.mainloop()
def makeusermenus(self):
m = Wapplication.Menu(self.menubar, "File")