Logo Search packages:      
Sourcecode: audit version File versions

def main_window::MainWindow::_refresh_config_stats (   self  )  [private]

Update configuration statistics.

Definition at line 172 of file main_window.py.

00172                                    :
        '''Update configuration statistics.'''
        rules = self.config.rules
        (exit_rules, watch_rules) = exit_watch_rules(rules.exit_rules)
        self.config_watches_label.set_text(str(len(watch_rules)))
        self.config_rules_label.set_text(str(len(rules.task_rules) +
                                             len(rules.entry_rules) +
                                             len(exit_rules)))
        self.config_types_label.set_text(str(len(rules.user_rules) +
                                             len(rules.exclude_rules)))
        if self.config != self.original_config: # See Config.__ne__
            self.config_state.set_text(_('Configuration modified.'))
            self.config_save.set_sensitive(True)
        else:
            if self.config_saved:
                self.config_state.set_text(_('Configuration saved.'))
            else:
                self.config_state.set_text(_('Configuration unchanged.'))
            self.config_save.set_sensitive(False)

    def __menu_quit_activate(self, *unused):


Generated by  Doxygen 1.6.0   Back to index