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