Python error "_tkinter.TclError: unknown font style "Normal""

0 votes

This line:

pen.clear()
pen.write("score: {} High Score: {}".format(score, high_score), align="center", font=("Courier", 24, "Normal"))

Gives me the following error:

_tkinter.TclError: unknown font style "Normal"
Jul 22 in Python by Neha
98 views

1 answer to this question.

0 votes

Change the line 

pen.write("score: {} High Score: {}".format(score, high_score), align="center", font=("Courier", 24, "Normal"))

To:

pen.write("score: {} High Score: {}".format(score, high_score), align="center", font=("Courier", 24, "normal"))

Its not "Normal", its "normal".

answered Jul 22 by Yashita

Related Questions In Python

0 votes
1 answer
+2 votes
2 answers

Error while printing hello world in python.

You must be trying this command in ...READ MORE

answered Mar 31, 2018 in Python by GandalfDwhite
• 1,320 points
146 views
0 votes
1 answer

Normal Python code equivalent to given list comprehension

You can try this code list1=[] for i in ...READ MORE

answered Jun 8, 2018 in Python by jain12
• 170 points
46 views
0 votes
2 answers

Indentation Error in Python

Use tabs instead of spaces. This is ...READ MORE

answered Feb 14 in Python by Shashank
• 1,350 points
122 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 414 views
+4 votes
6 answers
0 votes
1 answer

When I create and remove files rapidly on windows using python I get WindowsError (Error 5)

Here's the short answer: disable any antivirus or ...READ MORE

answered Aug 31, 2018 in Python by charlie_brown
• 7,720 points
221 views
0 votes
11 answers