def __init__(self, conf, parent=None):
        """Constructs a new config obj model

        :param conf: the ConfigObj with its spec already set!.
        :type conf: :class:`configobj.ConfigObj`
        :param parent: the parent object
        :type parent: :class:`PySide.QtCore.QObject`
        :returns: None
        :rtype: None
        :raises: None
        """
        super(ConfigObjModel, self).__init__(parent)
        self._conf = conf
        self._vld = Validator()
        if self._conf.configspec is not None:
            self._conf.validate(self._vld)

        # validation colors
        self._valid_col = QtGui.QColor(105, 205, 105)
        self._invalid_col = QtGui.QColor(250, 135, 135)
def __init__ ( self , conf , parent = None ) : super ( ConfigObjModel , self ) . __init__ ( parent ) self . _conf = conf self . _vld = Validator ( ) if self . _conf . configspec is not None : self . _conf . validate ( self . _vld ) self . _valid_col = QtGui . QColor ( 105 , 205 , 105 ) self . _invalid_col = QtGui . QColor ( 250 , 135 , 135 )
Constructs a new config obj model

        :param conf: the ConfigObj with its spec already set!.
        :type conf: :class:`configobj.ConfigObj`
        :param parent: the parent object
        :type parent: :class:`PySide.QtCore.QObject`
        :returns: None
        :rtype: None
        :raises: None