Ejemplo n.º 1
0
    def on_status(self, t, environment, machines):
        """Callback invoked when the machines list is updated
        """
        self.notebook.set_sensitive(True)

        model = Gtk.ListStore(*(Machine.get_column_types()))
        for machine in machines:
            row = []
            for column in Machine.get_column_names():
                row.append(getattr(machine, column))
            model.append(row)

        self.machines.set_model(model)
        self.selected_environment = environment