SFML community forums

Bindings - other languages => Python => Topic started by: grim on August 28, 2014, 10:49:39 pm

Title: TypeError-sfml.grahpics.Color.BLUE not callable
Post by: grim on August 28, 2014, 10:49:39 pm
import sfml as sf
some code....
blankScreen.fill_color(sf.graphics.Color.BLUE)

This code generates this error. I thought maybe I was calling the color wrong but some of the changes I made returned the same error or just said it didn't exist. What am I doing wrong, how do I get my BLUE on?
Title: Re: TypeError-sfml.grahpics.Color.BLUE not callable
Post by: grim on August 29, 2014, 06:12:43 am
Nevermind I figured it out. Wasn't paying attention, but second time reading api I realized that fill_color was an attribute not a method.