TypeError: 'game_Chars' object is not callable

Joined
Jan 11, 2011
Messages
1
Reaction score
0
from Characters import game_Chars

class Game:
def __init__(self):
self.player= self.setup()

def setup(self):
...getting values for player type and player name
player=game_Chars(player_type,player_name)
return player

def main():
game=Game();
name=game.player().getName();
print(name)

im getting "TypeError: 'game_Chars' object is not callable"
im sure its a really simple error but i just cant see it n all the other pages ive looked at with similar errors the fix seemed to be "from... import..." but i still get the error any help would be much appreciated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top