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
10 from gi
.repository
import Gtk
12 from gpodder
.gtkui
.draw
import draw_cake_pixbuf
14 sys
.path
.insert(0, 'src')
18 pixbuf
= draw_cake_pixbuf(percentage
)
19 return Gtk
.Image
.new_from_pixbuf(pixbuf
)
23 w
.connect('destroy', Gtk
.main_quit
)
28 h
.set_homogeneous(True)
31 for x
in range(PARTS
+ 1):
33 w
.set_default_size(400, 100)