Add Gtk.ProgressBar testcase.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
This commit is contained in:
parent
e456cf1c9e
commit
7931e104f4
20
tests/graphics/progress.py
Normal file
20
tests/graphics/progress.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
from gi.repository import Gtk
|
||||||
|
|
||||||
|
import common
|
||||||
|
|
||||||
|
|
||||||
|
test = common.Test()
|
||||||
|
test.show()
|
||||||
|
|
||||||
|
box = Gtk.HBox()
|
||||||
|
test.pack_start(box, True, False, 10)
|
||||||
|
box.show()
|
||||||
|
|
||||||
|
bar = Gtk.ProgressBar()
|
||||||
|
bar.set_fraction(0.5)
|
||||||
|
box.pack_start(bar, True, True, 10)
|
||||||
|
bar.show()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
common.main(test)
|
Loading…
Reference in New Issue
Block a user