parameters: (self, content: Any, data: Any)
docstring: Cell color is set based on whether pnl is
          positive or negative.
docstring_summary: Cell color is set based on whether pnl is
          positive or negative.
docstring_tokens: Cell color is set based on whether pnl is positive or negative .
function: def set_content(self, content: Any, data: Any) -> None:
          """
          Cell color is set based on whether pnl is
          positive or negative.
          """
          super(PnlCell, self).set_content(content, data)
  
          if str(content).startswith("-"):
              self.setForeground(COLOR_SHORT)
          else:
              self.setForeground(COLOR_LONG)
function_tokens: def set_content ( self , content : Any , data : Any ) -> None : super ( PnlCell , self ) . set_content ( content , data ) if str ( content ) . startswith ( "-" ) : self . setForeground ( COLOR_SHORT ) else : self . setForeground ( COLOR_LONG )