On Tue, 21 Oct 2003 08:20:29 -0500
david farning <[EMAIL PROTECTED]> wrote:
> I am trying to port an application from gtk+ to pygtk and have gotten
> stuck on three lines of the following function. I have delimited the
> problem area with ????? I can't figure out what gtk.widget.destroy is
> in pygtk.
>
>
> Thanks
> Dave
>
[...]
> ??????????
> okButton.connect("clicked",me.saveColor, data)
>
> okButton.connect("clicked", colorDialog.destroy())
>
> cancelButtong.connect("clicked",colorDialog.destroy()),
> ???????????
> colorDialog.show()
>
I think you have the right function - gtk.Widget.destroy.
Try...
okButton.connect("clicked", colorDialog.destroy)
cancelButtong.connect("clicked",colorDialog.destroy)
I.e. pass a reference to the function, rather than calling the function.
HTH,
David.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/