*** /usr/local/lib/python2.3/lib-tk/SimpleDialog.py Fri Feb 20 13:23:29 2004 --- SimpleDialog.py Sat Mar 6 18:09:49 2004 *************** *** 86,95 **** self.root.quit() ! def test(): ! root = Tk() ! def doit(root=root): ! d = SimpleDialog(root, text="This is a test dialog. " "Would this have been an actual dialog, " "the buttons below would have been glowing " --- 86,97 ---- self.root.quit() ! if __name__ == '__main__': ! ! def test(): ! root = Tk() ! def doit(root=root): ! d = SimpleDialog(root, text="This is a test dialog. " "Would this have been an actual dialog, " "the buttons below would have been glowing " *************** *** 99,111 **** default=0, cancel=2, title="Test Dialog") ! print d.go() ! t = Button(root, text='Test', command=doit) ! t.pack() ! q = Button(root, text='Quit', command=t.quit) ! q.pack() ! t.mainloop() - - if __name__ == '__main__': test() --- 101,111 ---- default=0, cancel=2, title="Test Dialog") ! print d.go() ! t = Button(root, text='Test', command=doit) ! t.pack() ! q = Button(root, text='Quit', command=t.quit) ! q.pack() ! t.mainloop() test()