from Tkinter import * import tkMessageBox import tkFileDialog,os def quit(): if tkMessageBox.askokcancel("Quit","DO u really want to quit"): root.destroy()
def fiopen(): file1 = tkFileDialog.askopenfile(parent=root,mode='rb',title='Choose a file') os.system("openoffice %s"%file1.name) root=Tk() label=Label(root,text="Welcome to PC-FREE PROJECTOR") label.pack() button=Button(root,text="select",command=fiopen) button.pack() button1=Button(root,text="Exit",command=quit) button1.pack() root.overrideredirect(True) root.geometry('%dx%d+%d+%d' % (root.winfo_screenwidth(), root.winfo_screenheight(), 0, 0)) root.lift() root.mainloop() the above program is my application please execute this program... while executing this program initially a window will open....after that the buttons 'select' and 'exit' is not working... i checked out by disabling root.overrideredirect(True) line in the program...then its working what is the problem here...i want this program to work perfectly plz do reply me thanx
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss