mirror of
https://github.com/python/cpython.git
synced 2025-09-17 06:06:25 +00:00
Cleaned uthread dependencies (jvr)
This commit is contained in:
parent
0f2fd16d15
commit
a1a335641b
1 changed files with 8 additions and 4 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue