Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def checklist::CheckList::__Test::__init_colors (   self,
  colorKey 
) [private]

Initialize the colors from GConf.

Arguments:
:colorKey: gconf key for the color minus the application prefix.

Initializes the colors for displaying the checklist from gconf into
our private variables.

Definition at line 611 of file checklist.py.

00611                                      :
        '''Initialize the colors from GConf.

        Arguments:
        :colorKey: gconf key for the color minus the application prefix.

        Initializes the colors for displaying the checklist from gconf into
        our private variables.
        '''
        key = GCONFPREFIX + colorKey
        self.gconfClient.notify_add(key, self.__color_changed, colorKey)
        try:
            color = self.gconfClient.get_string(key)
        except gobject.GError:
            color = self.gconfClient.get_default_from_schema(key).get_string()
        if color and self.colorRE.match(color):
            self.colors[colorKey] = color
        else:
            self.colors[colorKey] = (
                    self.gconfClient.get_default_from_schema(key).get_string())

    def __color_changed(self, client, connectID, entry, colorKey):


Generated by  Doxygen 1.6.0   Back to index