On Sat, Aug 21, 2010, Dan White wrote:
>
> def drawRulesGrid(pageSide):
>       """Draws rules on the page"""
>       lineSpace = (LINE_LAST_Y - LINE_FIRST_Y) / 30
>       if pageSide == 'right':
>               StartLines = (R_LINE_X + (C * LINE_X_OFFSET) for C in 
> range(COLUMNS))
>               BigLines = [0, 10, 20, 25, 30]
>       elif pageSide == 'left':
>               StartLines = (L_LINE_X + (C * LINE_X_OFFSET) for C in 
> range(COLUMNS))
>               BigLines = [0, 10, 20, 30]
>       for j in StartLines:
>               StartLineX, StartLineY = j, LINE_FIRST_Y
>               for i in range(31):
>                       Line = createLine(StartLineX, StartLineY, 
> StartLineX+LINE_LENGHT,  
> StartLineY)
>                       if i in BigLines:
>                               setLineWidth(BIG_LINE_WIDTH, Line)
>                       else:
>                               setLineWidth(THIN_LINE_WIDTH, Line)
>                       StartLineY += lineSpace
>
> ---------------------------------------------
> Traceback (most recent call last):
> File "", line 8, in ?
> File "SamAgenda.py", line 221
>    StartLines = (R_LINE_X + (C * LINE_X_OFFSET) for C in range(COLUMNS))
>                                                   ^
> SyntaxError: invalid syntax

Based on your later message, you presumably figured out that this was
not, in fact, Python 2.7 as claimed.  Just posting this for future
reference.
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"...if I were on life-support, I'd rather have it run by a Gameboy than a
Windows box."  --Cliff Wells
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to