[Tutor] how to enable overrideredirect
brindly sujith
brindly at gmail.com
Wed Jan 30 10:33:33 CET 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080130/fea54117/attachment.htm
More information about the Tutor
mailing list