def setForeground(self, color):
        """
        Sets the foreground color for this group item to the inputed color.
        
        :param      color | <QtGui.QColor>
        """
        btn = self.widget()
        if btn:
            palette = btn.palette()
            palette.setColor(palette.WindowText, color)
            btn.setPalette(palette)
def setForeground ( self , color ) : btn = self . widget ( ) if btn : palette = btn . palette ( ) palette . setColor ( palette . WindowText , color ) btn . setPalette ( palette )
Sets the foreground color for this group item to the inputed color.
        
        :param      color | <QtGui.QColor>