For example, graying out the "X" on windows systems.
If Gtk can't convince the window manager you can always connect the "delete-event" signal and return True from the callback. Doing this Gtk assumes that the callback handle that signal and does nothing.
import gtk
window = gtk.Window()
window.connect('delete-event',lambda widget, event: True)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With