[pygtk] Close button demonstrating app, and questions
Dieter Verfaillie
dieterv at optionexplicit.be
Sun Apr 30 23:51:31 WST 2006
On Sun, 2006-04-30 at 16:50 +0200, Khiraly wrote:
> Thanks so much your answer!
you're welcome
> However I dont understand this line of code:
> def delete(self, widget, event=None, *arguments, **keywords):
>
> What are the *arguments and **keywords? Its a python syntax? Can you
> provide me an url?
> There are C-like pointer in python?
Python tutorial, section 4.7.2 Keyword Arguments:
http://docs.python.org/tut/node6.html#SECTION006720000000000000000
I've used it here as a handy way to ignore arguments I don't know/care
about...
> Thought about the implementation:
> According this email message:
> http://www.daa.com.au/pipermail/pygtk/2004-December/009298.html
> ("Please, remember that callbacks assigned in connect_group must return
> True. Otherwise GTK+ will segfault sooner or later.")
>
> Should end by return True I think. Am I wrong?
Correct! According to
http://pygtk.org/pygtk2reference/class-gtkaccelgroup.html#method-gtkaccelgroup--connect-group,
"callback returns TRUE if the accelerator was handled by callback".
Thanks for spotting that,
dieterv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060430/c38dec39/attachment.pgp
More information about the pygtk
mailing list