TypeError: 'game_Chars' object is not callable

Discussion in 'Python' started by mickycosta, Jan 11, 2011.

  1. mickycosta

    mickycosta

    Joined:
    Jan 11, 2011
    Messages:
    1
    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
     
    mickycosta, Jan 11, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Randall Parker
    Replies:
    5
    Views:
    55,931
    James Stroud
    Mar 22, 2006
  2. Gary Wessle
    Replies:
    1
    Views:
    19,742
    John Machin
    Apr 28, 2006
  3. Charles Russell
    Replies:
    10
    Views:
    21,473
    Charles Russell
    Aug 15, 2006
  4. randomtalk@gmail.com

    TypeError: 'module' object is not callable

    randomtalk@gmail.com, Mar 16, 2007, in forum: Python
    Replies:
    3
    Views:
    425
    Gabriel Genellina
    Mar 17, 2007
  5. AWasilenko@gmail.com

    TypeError: 'int' object is not callable

    AWasilenko@gmail.com, Mar 23, 2007, in forum: Python
    Replies:
    2
    Views:
    597
    AWasilenko@gmail.com
    Mar 23, 2007
Loading...

Share This Page