def decrease(self): self.value-=1.0 fraction=self.value/self.max_value self.progressbar.set_fraction(fraction) self.map() while Gtk.events_pending(): Gtk.main_iteration()