Python Forum
'module' object is not callable - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: 'module' object is not callable (/thread-2920.html)



'module' object is not callable - lilCasio - Apr-19-2017

white = pygame.color(255,255,255) 
TypeError: 'module' object is not callable

When I run the code that happens.


RE: Need Help - volcano63 - Apr-19-2017

  • 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



RE: Need Help - Low_Ki_ - Apr-20-2017

(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.