Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
turtle.Screen() not working
#1
so in the python shell i imported turtle(I had tkinter installed don't worry) and then typed in the following:

wn = turtle.Screen()
when I hit enter, i got an error message:
Error:
File "<stdin>", line 1, in <module> File "/usr/lib/python3.8/turtle.py", line 3662, in Screen Turtle._screen = _Screen() File "/usr/lib/python3.8/turtle.py", line 3678, in __init__ _Screen._root = self._root = _Root() File "/usr/lib/python3.8/turtle.py", line 434, in __init__ TK.Tk.__init__(self) File "/usr/lib/python3.8/tkinter/__init__.py", line 2261, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: unknown color name "BACKGROUND"
i am using Manjaro on the raspberry pi 4 if that means anything.

If anyone can help me, that would be great Big Grin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Turtle Graphics - Screen & Window Sizing jerryf 1 771 Feb-09-2023, 08:02 PM
Last Post: jerryf
  Turtle.setpos() vs text position on screen query ElectronWrangler 0 1,507 Nov-26-2022, 02:39 AM
Last Post: ElectronWrangler
  Noob question: why is shapesize() not working for my turtle adifrank 8 5,660 Sep-09-2020, 11:13 PM
Last Post: adifrank
  Python 3 Turtle - Screen Events and Coords peteralien 0 1,651 Aug-18-2020, 11:25 PM
Last Post: peteralien
  setup() from turtle module not working bobfat 7 5,989 Oct-28-2019, 11:05 AM
Last Post: newbieAuggie2019
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 6,124 Feb-06-2019, 01:25 AM
Last Post: woooee
  Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. BertyBee 3 5,538 Jan-04-2019, 02:44 AM
Last Post: SheeppOSU
  Working with turtle graphics in python and colour slices of a pie graph... netrate 1 4,441 Feb-03-2018, 08:41 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020