From: Harishankar Date: Mon, 7 Nov 2011 03:28:22 +0000 (+0530) Subject: Small changes to the progress window X-Git-Url: https://harishankar.org/repos/?a=commitdiff_plain;h=HEAD;p=biagen.git Small changes to the progress window Minor changes to the progress window --- diff --git a/progress_window.py b/progress_window.py index 102b222..7f1cb18 100644 --- a/progress_window.py +++ b/progress_window.py @@ -23,6 +23,7 @@ class BiaGenProgress: if perc >= 0 and perc <= 1: pbar.set_fraction (perc) else: + pbar.set_pulse_step (0.3) pbar.pulse () except: pass @@ -56,6 +57,7 @@ class BiaGenProgress: #gobject.idle_add (self.update_ui, data) self.parent.ui.get_object ("progressmessages").get_buffer ().set_text (data) self.parent.ui.get_object ("btnclose").set_sensitive (True) + self.parent.ui.get_object ("btncancel").set_sensitive (False) self.parent.ui.get_object ("progress").set_fraction (1.0) def __init__ (self, parent): diff --git a/progress_window.xml b/progress_window.xml index 6b0affa..0419f8f 100644 --- a/progress_window.xml +++ b/progress_window.xml @@ -51,6 +51,7 @@ True + True 2