code: def PenForNode( self, node, depth=0 ):
          
          if node == self.selectedNode:
              return self.SELECTED_PEN
          return self.DEFAULT_PEN
docs: Determine the pen to use to display the given node