Python Forum

Full Version: 'module' object is not callable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
white = pygame.color(255,255,255) 
TypeError: 'module' object is not callable

When I run the code that happens.
  • Please, give your posts meaningful names that give idea of the problem you are stuck with. This may help
  • Please, use formatting for the code
  • Obviously
    pygame.color
    is a name of a module, not function or class - thus an exception
(Apr-19-2017, 06:05 PM)lilCasio Wrote: [ -> ]white = pygame.color(255,255,255) 
TypeError: 'module' object is not callable

When I run the code that happens.

Not to be rude but please post in the PyGame section for PyGame help.