Small changes to the progress window master
authorHarishankar <v.harishankar@gmail.com>
Mon, 7 Nov 2011 03:28:22 +0000 (08:58 +0530)
committerHarishankar <v.harishankar@gmail.com>
Mon, 7 Nov 2011 03:28:22 +0000 (08:58 +0530)
Minor changes to the progress window

progress_window.py
progress_window.xml

index 102b222..7f1cb18 100644 (file)
@@ -23,6 +23,7 @@ class BiaGenProgress:
                                if perc >= 0 and perc <= 1:
                                        pbar.set_fraction (perc)
                                else:
                                if perc >= 0 and perc <= 1:
                                        pbar.set_fraction (perc)
                                else:
+                                       pbar.set_pulse_step (0.3)
                                        pbar.pulse ()
                        except:
                                pass
                                        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)
                        #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):
                        self.parent.ui.get_object ("progress").set_fraction (1.0)
 
                def __init__ (self, parent):
index 6b0affa..0419f8f 100644 (file)
@@ -51,6 +51,7 @@
         <child>
           <object class="GtkProgressBar" id="progress">
             <property name="visible">True</property>
         <child>
           <object class="GtkProgressBar" id="progress">
             <property name="visible">True</property>
+            <property name="show_text">True</property>
           </object>
           <packing>
             <property name="position">2</property>
           </object>
           <packing>
             <property name="position">2</property>