Python Forum

Full Version: ValueError: invalid rectstyle object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone, I have a problem.
First of one I'm using the python 3.7 version
I'm learning to use the pygame library; Well I have done this test program:

import pygame
import time
pygame.init ()
areapalloncino = pygame.display.set_mode ((400,500))
pygame.draw.circle (balloon area, (255,0,0), (300,350), 30)
pygame.draw.line (small balloon, (255,255,0), (300,380), (300, 580))
pygame.display.update ()

areapalloncino.fill (255,255,255)
pygame.draw.circle (balloon area, (255,0,0), (300,250), 30)
pygame.draw.line (balloon area, (255,255,0), (300,280), (300, 480))
pygame.display.update ()

areapalloncino.fill (255,255,255)
pygame.draw.circle (balloon area, (255,0,0), (300,150), 30)
pygame.draw.line (areapalloncino, (255,255,0) (300.180) (300.380))
pygame.display.update ()
and gives me the error I put in the title. What does it mean?
Your code without errors:
See also:
https://python-forum.io/Thread-PyGame-Cr...dow-part-1

#!/usr/bin/python3
import pygame
import time

pygame.init ()
screen = pygame.display.set_mode ((400,500))

pygame.draw.circle (screen, (255,0,0), (300,350), 30)
pygame.draw.line (screen, (255,255,0), (300,380), (300, 580))
pygame.display.update ()
.
pygame.draw.circle (screen, (255,0,0), (300,250), 30)
pygame.draw.line (screen, (255,255,0), (300,280), (300, 480))
pygame.display.update ()
.
pygame.draw.circle (screen, (255,0,0), (300,150), 30)
pygame.draw.line (screen, (255,255,0), (300,180), (300,380))
pygame.display.update ()