Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/iconentry_testcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iconentry_testcase.py')
-rw-r--r--tests/iconentry_testcase.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/iconentry_testcase.py b/tests/iconentry_testcase.py
new file mode 100644
index 0000000..fadf3a8
--- /dev/null
+++ b/tests/iconentry_testcase.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+from gi.repository import Gtk
+from sugar3.graphics.iconentry import IconEntry
+
+
+def main():
+ window = Gtk.Window()
+
+ iconentry = IconEntry()
+ iconentry.set_icon_from_name(
+ Gtk.EntryIconPosition.PRIMARY,
+ 'system-search'
+ )
+
+ iconentry.set_icon_from_name(
+ Gtk.EntryIconPosition.SECONDARY,
+ 'system-search'
+ )
+
+ window.add(iconentry)
+
+ window.connect("destroy", Gtk.main_quit)
+ window.show_all()
+ Gtk.main()
+
+if __name__ == "__main__":
+ main()