[Sugar-devel] [PATCH sugar-toolkit-gtk3] Add testcase for Gtk scales
Manuel Quiñones
manuq at laptop.org
Tue Aug 28 17:54:16 EDT 2012
Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
tests/graphics/scales.py | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 tests/graphics/scales.py
diff --git a/tests/graphics/scales.py b/tests/graphics/scales.py
new file mode 100644
index 0000000..42b62e1
--- /dev/null
+++ b/tests/graphics/scales.py
@@ -0,0 +1,43 @@
+from gi.repository import Gtk
+
+import common
+
+
+test = common.Test()
+test.show()
+
+hbox = Gtk.HBox()
+test.pack_start(hbox, True, True, 0)
+hbox.show()
+
+adjustment = Gtk.Adjustment(0, 0, 10, 1, 32, 0)
+
+vscale = Gtk.VScale()
+vscale.set_adjustment(adjustment)
+hbox.pack_start(vscale, False, False, 0)
+vscale.show()
+
+vbox = Gtk.VBox()
+hbox.pack_start(vbox, True, True, 0)
+vbox.show()
+
+hscale = Gtk.HScale()
+hscale.set_adjustment(adjustment)
+vbox.pack_start(hscale, False, False, 0)
+hscale.show()
+
+adjustment_2 = Gtk.Adjustment(0, 0, 10, 1, 32, 0)
+hscale_2 = Gtk.HScale()
+hscale_2.set_adjustment(adjustment_2)
+vbox.pack_start(hscale_2, False, False, 0)
+hscale_2.show()
+
+adjustment_3 = Gtk.Adjustment(0, 0, 10, 1, 32, 0)
+hscale_3 = Gtk.HScale()
+hscale_3.set_adjustment(adjustment_3)
+vbox.pack_start(hscale_3, False, False, 0)
+hscale_3.show()
+
+
+if __name__ == '__main__':
+ common.main(test)
--
1.7.11.4
More information about the Sugar-devel
mailing list