From 7c5e04b4f06fbfbfaffbfd99e801ed91e21f44bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Mon, 3 Dec 2012 11:44:53 -0300
Subject: [PATCH toolkit 2/2] Add Gtk.ProgressBar testcase.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
---
tests/graphics/progress.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 tests/graphics/progress.py
diff --git a/tests/graphics/progress.py b/tests/graphics/progress.py
new file mode 100644
index 0000000..bc176a8
-
|
+
|
|
| 1 | from gi.repository import Gtk |
| 2 | |
| 3 | import common |
| 4 | |
| 5 | |
| 6 | test = common.Test() |
| 7 | test.show() |
| 8 | |
| 9 | box = Gtk.HBox() |
| 10 | test.pack_start(box, True, False, 10) |
| 11 | box.show() |
| 12 | |
| 13 | bar = Gtk.ProgressBar() |
| 14 | bar.set_fraction(0.5) |
| 15 | box.pack_start(bar, True, True, 10) |
| 16 | bar.show() |
| 17 | |
| 18 | |
| 19 | if __name__ == '__main__': |
| 20 | common.main(test) |