コード例 #1
0
ファイル: configDialog.py プロジェクト: jrecuero/automat
    def disableAttributeDependency(self, dep):
        """ Disable attribute dependency to be displayed in the dialog.

        It disables the given attribute dependency to be displayed in the
        dialog, and it is removed from the cached.
        """
        config.setResourceAttrDepsEnable(dep, False)
        if dep in self.cache['deps']:
            self.cache['deps'].remove(dep)
コード例 #2
0
ファイル: configDialog.py プロジェクト: jrecuero/automat
    def enableAttributeDependency(self, dep):
        """ Enable attribute dependency to be displayed in the dialog.

        It enabled the given attribute dependency to be displayed in the
        dialog, and it cached internally in order to be re-initialized when
        dialog is closed.
        """
        config.setResourceAttrDepsEnable(dep, True)
        if dep not in self.cache['deps']:
            self.cache['deps'].append(dep)
コード例 #3
0
ファイル: configDialog.py プロジェクト: jrecuero/automat
 def disableAllAtributeDependencies(self):
     """ Disable all attributes dependencies cached.
     """
     for dep in self.cache['deps']:
         config.setResourceAttrDepsEnable(dep, False)