I don't know python, but in the example below, the purpose of the line "memset(&l_req,0,sizeof(GtkRequisition));" wat to garantee that the final value of the members of "l_req" were assigned by "gtk_widget_size_request". I mean, that is no a required step, it is relevant only in the example's context.
Atentamente, Jorge Opaso Pazos AUTOLogic LTDA El 07-08-2009, a las 7:05, Gerald Britton escribió: Does the Python wrapper implement the __sizeof__ special method? For built-in objects, this is the normal way to get the size. |