Python Forum
ValueError: invalid rectstyle object
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ValueError: invalid rectstyle object
#1
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?
Reply
#2
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 ()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ValueError: invalid literal for int() with base 10: omega_elite 5 14,862 Dec-30-2020, 06:11 AM
Last Post: delonbest
  ValueError: invalid literal for int() with base 10: '\n' srisrinu 9 9,441 Apr-13-2020, 01:30 PM
Last Post: ibreeden
  zlib decompress error: invalid code lengths set / invalid block type DreamingInsanity 0 11,175 Mar-29-2020, 12:44 PM
Last Post: DreamingInsanity
  input-ValueError: invalid literal for int() jacklee26 2 3,779 Feb-21-2020, 01:27 PM
Last Post: ndc85430
  ValueError: invalid literal for int() with base 10: '0.5' emmapaw24 2 5,498 Feb-16-2020, 07:24 PM
Last Post: emmapaw24
  ValueError: invalid literal for int() with base 10: '' Jay123 7 13,857 Aug-05-2019, 02:43 PM
Last Post: Jay123
  ValueError: invalid literal for int() with base 10: '' ivinjjunior 6 11,739 Apr-20-2019, 05:37 PM
Last Post: keames
  ValueError: This COM object does not support events. meenakshi11 0 5,500 Mar-08-2018, 09:42 AM
Last Post: meenakshi11
  ValueError: invalid literal for int() with base 10: '[2,4,7,8,19]' rajeev1729 3 63,289 Sep-15-2017, 05:51 PM
Last Post: nilamo
  ValueError: invalid literal for int() with base 10: '' DennisT 8 19,536 Oct-12-2016, 03:20 PM
Last Post: DennisT

Forum Jump:

User Panel Messages

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