[pygtk] TypeError when trying to destroy a window

Bruno Dusausoy bdusauso at beeznest.net
Tue Aug 24 14:53:04 WST 2004


Hi,

I have some lines that cause this error message:

TypeError: descriptor 'destroy' requires a 'gtk.Widget' object but
received a 'NoneType'

The lines incriminated are:

...
self.cancel_button = self.wtree.get_widget ("package_add_cancel_button")
self.cancel_button.connect_object
	("clicked", 
	gtk.Widget.destroy, 	self.window)										gtk.Widget.destroy,

All i want is to destroy (close) "self.window"

Can somebody tell me what i'm doing wrong ? 
-- 
bdusauso (ASCII 64) beeznest (ASCII 46) net



More information about the pygtk mailing list