On Thu, Jan 09, 2003 at 11:31:33AM -0500, John K Luebs wrote:
>
> What you probably want:
>
> self.buttondel.connect("clicked", self.delete)
>
> def delete(self, button):
> self.clistmon.remove(self.clistmon.selection[0])
> return TRUE
>
OK, ideally you should actually make sure there is a selection so more
correctly:
def delete(self, button):
if self.clistmon.selection:
self.clistmon.remove(self.clistmon.selection[0])
return TRUE
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/