Exemple #1
0
 def update_console(self, key):
     '''
     update the console with information
     @param key: information to show (description,changelog,filelist)
     '''
     if self.pkg:
         busyCursor(self.main_window)
         self.console.clear()
         self._set_output_view(key)
         if key == 'description':
             self.show_description()
         elif key == 'changelog':
             self.show_changelog()
         elif key == 'filelist':
             self.show_filelist()
         elif key == 'update':
             self.show_update()
         elif key == 'deps':
             self.show_dependencies()
         self.console.goTop()
         normalCursor(self.main_window)
Exemple #2
0
    def show(self, force = False):
        '''
        Show the progress dialog
        '''
        if not self._active: self.status_icon.set_is_working(True)
        self._active = True
        _is_visible = self.dialog.get_property('visible')
        if force: # If force the make sure the dialog is shown
            if not _is_visible:
                self.dialog.set_property('visible',True)
                self.dialog.show()
                self.dialog.queue_draw()
        elif not self.parent.get_property('visible'): return

        busyCursor(self.parent, True)
        self.reset()
        self.dialog.show()
        if not self.default_w: # store the default dialog size
            self.default_w, self.default_h = self.dialog.get_size()
        elif self.tasks.is_hidden:
            # Shrink dialog to the default size
            self.dialog.resize(self.default_w, self.default_h)
            self.dialog.queue_draw()