[pygtk] Proposal of change for the tutorial
Antoon Pardon
Antoon.Pardon at rece.vub.ac.be
Thu Jan 22 14:21:51 WST 2004
Based on my own confusion while reading section 12 of the
tutorial, I propose the following changes.
Right before 12.1 Graphics Context
| Note: Despite its name a DrawingArea is not itself a drawable.
| It is a thin widget that wraps a drawable in this case a
| gtk.gdk.Window which is available through the window atrribute
| of the gtk.DrawingArea.
Right after the title I would change the paragraph to the
following.
| A variety of methods are available to draw onto a drawable,
| a gtk.gdk.Window or a gtk.gdk.Pixmap, but each requires a
| graphics context (gtk.gdk.GC) to encapsulate the information
| required in drawing. The attributes of a gtk.gdk.GC are:
I would change
gc = widget.window.new_gc(...
to
gc = drawable.new_gc(...
--
Antoon Pardon
More information about the pygtk
mailing list