from Tkinter import *import tkMessageBox def a(): filename = "a.txt" try: fp = open(filename) except: tkMessageBox.showwarning( "Open file", "Cannot open this filen(%s)" % filename ) returna()
Name (required)
email (will not be published) (required)
Website