Minor changes to the progress window
if perc >= 0 and perc <= 1:
pbar.set_fraction (perc)
else:
+ pbar.set_pulse_step (0.3)
pbar.pulse ()
except:
pass
#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):
<child>
<object class="GtkProgressBar" id="progress">
<property name="visible">True</property>
+ <property name="show_text">True</property>
</object>
<packing>
<property name="position">2</property>