2 # Progressbar icon tester
3 # Thomas Perl <thp.io/about>; 2012-02-05
5 # based on: Simple script to test gPodder's "pill" pixbuf implementation
6 # Thomas Perl <thp.io/about>; 2009-09-13
9 sys
.path
.insert(0, 'src')
13 from gpodder
.gtkui
.draw
import draw_cake_pixbuf
16 pixbuf
= draw_cake_pixbuf(percentage
)
17 return gtk
.image_new_from_pixbuf(pixbuf
)
20 w
.connect('destroy', gtk
.main_quit
)
25 h
.set_homogeneous(True)
28 for x
in xrange(PARTS
+ 1):
29 h
.add(gen(float(x
)/float(PARTS
)))
30 w
.set_default_size(400, 100)