On Fri, 2003-01-17 at 19:11, Johan Dahlin wrote: > > James, Johan: is this a known bug? Or is it a TODO item? This needs to > > be fixed. GdkEvent needs to be subclassed to GdkEventExpose where > > appropriate, right? I'm willing to try to fix this someday, if you want. > > Event is infact a GdkEventExpose, it's just called GdkEvent to make > things a bit easier for the code generator. > > Everything except the region member in the GdkEventExpose struct is > wrapped. > So you can access area for instance: > event.area.x etc
You're right. However, doing: dir(event) returns this: ['copy', 'free', 'get_axis', 'get_coords', 'get_root_coords', 'get_time', 'put'] This means that casual programmers will not discover that there is an 'area' field in that object, unfortunately. -- Gustavo Jo�o Alves Marques Carneiro <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
