Can someone tell me 'how can we disable the close icon' which is found on upper left corner of a tkinter menu which is encircled in the picture below:
Thanks in advance
Here is an example how to do this with the Windows OS ...
# disable window title bar corner x click # you need to supply your own exit button from Tkinter import * def exit(): "dummy function" pass root = Tk() root.protocol("WM_DELETE_WINDOW", exit) btn_quit = Button( text="Quit", command=root.destroy ) btn_quit.pack() root.mainloop()
thanks you vegaseat. you are the best......
and for Linux user