Future of the Python Linux Distribution

Will Ware wware at world.std.com
Tue May 9 15:30:01 CEST 2000


Will Ware (wware at world.std.com) wrote:
> Add a line at the end that says "showpage". Then you should be able
> to see it.

I typed too quickly. There are a bunch of def's here, but none of them
is ever called, so nothing gets drawn (even with a showpage), just as
if a Python file had a bunch of def's but never called any functions.
Also, _rbar doesn't get defined anywhere. This is just a snippet out
of a bigger file, not meaningful out of context, but evidence that one
really can hand-code Postscript. I do it also. To help you avoid
disappointment, here's some hand-coded Postscript for printing music
paper.
====================================
%!PS-Adobe
/LeftMargin .5 72 mul def
/RightMargin 8 72 mul def
/BottomMargin 72 def
/TopMargin 72 10 mul def
/Gap .1 72 mul def

/oneline { dup LeftMargin exch moveto RightMargin exch lineto stroke } def

/staff { dup oneline Gap sub
        dup oneline Gap sub
        dup oneline Gap sub
        dup oneline Gap sub
        oneline } def

TopMargin dup staff
72 sub dup staff
72 sub dup staff
72 sub dup staff
72 sub dup staff
72 sub dup staff
72 sub dup staff
72 sub dup staff
72 sub dup staff
72 sub staff

showpage
====================================
-- 
 - - - - - - - - - - - - - - - - - - - - - - - -
Resistance is futile. Capacitance is efficacious.
Will Ware	email:    wware @ world.std.com



More information about the Python-list mailing list