hi everyone.....
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"

root = Tk()
root.protocol("WM_DELETE_WINDOW", exit)

btn_quit = Button( text="Quit", command=root.destroy )


thanks you vegaseat. you are the best......

and for Linux user


root.protocol("WM_DELETE_WINDOW", exit)

with this

commented: Usefull info but to old thread. +3