Changing Fonts in IDLE-0.5

Greg Ewing greg at cosc.canterbury.ac.nz
Fri Feb 16 03:46:33 CET 2001


Jeff Stephens wrote:
> 
>   File "./EditorWindow.py", line 142
>     text['font'] = ("times adobe", 14)
>     ^
> SyntaxError: invalid syntax

Looks like an indentation problem. Make sure you
indent the line exactly the same way as it
was previously.

You sound like you're new to Python, so you
need to be aware that indentation is syntactically
significant in Python.

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list