Page 1 of 1

Running Pygame Zero in Thonny

Posted: Sun Jan 06, 2019 9:35 pm
by PolarBear123
Hello! Is it possible to run a game in Python using Pygame Zero in the Thonny Python IDE?
When I do:

Code: Select all

import pgzrun
...
pgzrun.go()
it gives me an import error, you can't run this code from an interactive interpreter.

Re: Running Pygame Zero in Thonny

Posted: Sun Jan 06, 2019 9:53 pm
by bensimmo
That's what we get too.
So we use IDLE3 or Mu. (Both on the Pi)

Re: Running Pygame Zero in Thonny

Posted: Sat Apr 27, 2019 9:20 pm
by scotty101
Anyone know anything more about this?

PyGame Zero works fine on my Pi in Thonny but not on the Pi's used at the Code Club I volunteer at.

Re: Running Pygame Zero in Thonny

Posted: Sun Apr 28, 2019 2:04 pm
by bensimmo
Version of pygame, version of Thonny?
(I think it has pygame zero mode now, not needed if you have the import iirc.)
my does pygame zero too.?

But what problem are you seeing ?

But I think it will be the version of Thonny, it needs updating (it didn't used to work)