title: Type Object has no attribute
body: <p>I am working on a program, but I am getting the error "Type object 'Card' has no attribute fileName. I've looked for answers to this, but none that I've seen is in a similar case to this.</p>
  
  <pre><code>class Card:
  RANKS = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
  SUITS = ('s', 'c','d','h')
  BACK_Name = "DECK/b.gif"
  
  def __init__(self, rank, suit):
      """Creates a card with the given rank and suit."""
      self.rank = rank
      self.suit = suit
      self.face = 'down'
      self._fileName = 'DECK/' + str(rank) + suit[0] + '.gif'
  
  class TheGame(Frame):
  
      def __init__(self):
          Frame.__init__(self)
          self.master.title("Memory Matching Game")
          self.grid()
  
          self.BackImage = PhotoImage(file = Card.BACK_Name)
          self.cardImage = PhotoImage(file = Card.fileName)
  </code></pre>
  
  <p>Any help to solving this would be great. thanks.</p>