[pygtk] Preventing a GTK Window from being closed

mpj17 mpj17@student.canterbury.ac.nz
Fri, 03 Nov 2000 06:08:52 +0000


"Kohli, Ranjan" wrote:
> 
> Hi, I did try not connecting to the destroy signal, the consequence of that
> was that on clicking the dismiss window icon, the window still disappears.
> 
    self.window.connect("delete_event", destroy_cb)
    self.window.connect("destroy", destroy_cb)
    def destroy_cb(self, *args):
        return 1


Why, in the name of all that is good and pure, would you want to do this
|:-}?
-- 
Michael JasonSmith        http://www.cosc.canterbury.ac.nz/~mpj17/