Re: [pygtk] RE: create_progress_bar() question

2000-08-21 Thread Aaron Optimizer Digulla
Quoting Javi Roman <[EMAIL PROTECTED]>: > def timeout(pbar=pbar, pcnt=0): > pcnt = (pcnt + 0.02) % 1.0 > pbar.update(pcnt) > print pcnt > return TRUE When you do this, then pcnt will always contain zero because that is what pcnt is se

[pygtk] RE: create_progress_bar() question

2000-08-21 Thread Javi Roman
The whole program to have more details is the following one: #!/usr/bin/env python # from gtk import * def create_progress_bar(_btn): win = GtkDialog() win.set_position (WIN_POS_CENTER) win.set_policy(FALSE, FALSE, TRUE) win.set_title("Progressing") vbo