On Mon, 1 Oct 2001, Skip Montanaro wrote:

> Before the recent updates, to get a new gc I called gtk.gdk_gc.new.  Now I
> have to call gtk.gdk.gdk_gc_new.  Shouldn't the method name be changed to
> simply "gc_new"?

The gdk_gc_new_with_values() function is mapped to a method of GdkDrawable
(new_gc).  So you can create GCs with:
  gc = widget.window.new_gc()

This function will map keyword arguments to attributes of the GC, so you
caneasily set its foreground, etc when creating it.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to