Commit dfb110d8 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Merge with 3.4

parents fc452518 8450c533
......@@ -260,12 +260,13 @@ class DemoWindow(object):
return menu
def refreshCanvas(self):
if not self.dirty: return
if self.dirty:
self.screen.clear()
self.dirty=False
def loadfile(self, filename):
self.refreshCanvas()
self.clearCanvas()
turtle.TurtleScreen._RUNNING = False
modname = 'turtledemo.' + filename
__import__(modname)
self.module = sys.modules[modname]
......@@ -319,8 +320,6 @@ class DemoWindow(object):
self.configGUI(NORMAL, NORMAL, DISABLED, DISABLED,
"STOPPED!", "red")
turtle.TurtleScreen._RUNNING = False
else:
turtle.TurtleScreen._RUNNING = False
def _destroy(self):
self.root.destroy()
......
......@@ -219,7 +219,7 @@ def main():
mainscreen.mode("standard")
mainscreen.setup(SCREENWIDTH, SCREENHEIGHT)
nim = Nim(mainscreen)
return "EVENTLOOP!"
return "EVENTLOOP"
if __name__ == "__main__":
main()
......
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