Hi all,
I really can't understand how to start the progress bar when I press a button.
Put the bar is really easy, but after a lot of tentatives I couldn't find the
way to start the bar.
Here I put the prograss bar in the window and it work fine
progressbar = gtk.ProgressBar(adjustment=None)
progressbar.set_text('work in progress')
table.attach(progressbar, 2, 4, 12, 13)
progressbar.show()
Here is the button
button = gtk.Button(label='Make & Install')
button.connect("clicked", self.make) #make & install
button.connect("clicked", self.pulse)
table.attach(button, 1, 3, 4, 5)
button.show()
I've tried in this way (of course wrong probably)
def pulse(self, widget, data=None):
if button.connect():
self.progressbar.pulse()
else:
self.progressbar.set_fraction(0.0)
Before post this message I've tried a lot of times to solve myself and look
into the FAQ, but nothing to do :(
Thanks if someone can explain me how to do
Liquid
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/