def __init__(self, *a, **kw): iconbitmap = kw.pop("iconbitmap", "") BinillaWidget.__init__(self, *a, **kw) TextViewer.__init__(self, *a) self.apply_style() if iconbitmap: try: self.iconbitmap(str(iconbitmap)) except Exception: print("Could not load window icon.")
def showAboutTurtle(): TextViewer(demo.root, "About the new turtle module", "about_turtle.txt")
def showAboutDemo(): TextViewer(demo.root, "About turtleDemo", "about_turtledemo.txt")
def showDemoHelp(): TextViewer(demo.root, "Help on turtleDemo", "demohelp.txt")