def do_parser_finished(self, builder):
        self.builder = builder
        self.builder.connect_signals(self)

        self.chosen_cutlist = None

        self.treeview_local_cutlists = CutlistsTreeView()
        self.treeview_local_cutlists.show()
        self.treeview_local_cutlists.get_selection().connect(
            'changed', self._on_local_selection_changed)
        self.builder.get_object('scrolledwindow_local').add(
            self.treeview_local_cutlists)
        self.treeview_download_cutlists = CutlistsTreeView()
        self.treeview_download_cutlists.show()
        self.treeview_download_cutlists.get_selection().connect(
            'changed', self._on_download_selection_changed)
        self.builder.get_object('scrolledwindow_download').add(
            self.treeview_download_cutlists)

        self.filename = ""
Exemple #2
0
    def do_parser_finished(self, builder):
        self.builder = builder
        self.builder.connect_signals(self)

        self.cutlists_treeview = CutlistsTreeView()
        self.cutlists_treeview.show()
        self.cutlists_treeview.get_selection().connect(
            'changed', self.treeview_cutlists_selection_changed)
        self.builder.get_object('scrolledwindow_cutlists').add(
            self.cutlists_treeview)

        animation = gtk.gdk.PixbufAnimation(path.get_image_path("spinner.gif"))
        self.builder.get_object('image_spinner').set_from_animation(animation)
        self.builder.get_object('image_spinner_download').set_from_animation(
            animation)

        selection = self.builder.get_object(
            'treeview_programs').get_selection()
        selection.connect('changed', self.treeview_programs_selection_changed)