On Sat, Mar 06, 2004 at 02:21:40PM +0000, Gustavo J. A. M. Carneiro wrote:
> > It seems that gnomeprint.Config does not have grestore() method wrapped 
> > for python. Am I missing something, or should I go ahead and file a bug
> > in Bugzilla?
> 
>   No need.  It has been fixed in CVS for a long time, but gnome-python
> hasn't had a release for a long time also :)
>   If you are going to checkout gnome-python from CVS, beware about
> branching.  Either you have gnome 2.5 libs, or you better use the
> gnome-python-2-0 branch.

I see. Compiling it at the moment...

> > While we're at it, what does 
> >     gpc.scale(144, 144)
> > do in example_02.py? Where does 144 come from?
> 
> Documentation for gnome_print_rgbaimage says:
>        "Draws RGB color image with transparency channel image into unit
> square (0,0 - 1,1) in current coordinate system."
> 
>   I think the default gnomeprint units are 'points'.  IIRC, one inch is
> 72 points.  So, what gpc.scale(144, 144) does is make the image 2 by 2
> inches.

This makes great sense now, thanks a lot! BTW, where can the 
"Documentation for gnome_print_rgbaimage" and, maybe, other gnome-print
functions be found?

Regards,
Alex

-- 
Alexander Roitman   http://ebner.neuroscience.umn.edu/people/alex.html
Dept. of Neuroscience, Lions Research Building
2001 6th Street SE, Minneapolis, MN  55455
Tel (612) 625-7566   FAX (612) 626-9201

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to