[pygtk] Redefining the problem: Related to inheritance

John Ehresman jpe at wingware.com
Wed Aug 29 00:04:54 WST 2007


varun_shrivastava wrote:
>> Does the .defs file contain a definition for the 
>> gtk_my_displayable_add_command function?  It may be mapped using the 
>> name 'add_command' instead of displayable_add_command.
>
> How did you know that 

In general, method names are created from the C function names by 
removing the type prefix from the name and the my guess was that the 
type prefix was 'gtk_my_displayable' in this case.  It's also why I 
suggested looking in the .defs file because I think it's explicitly 
listed there.

Cheers,

John


More information about the pygtk mailing list