[POS-commit] r6454 - kiwi/trunk/examples

Johan Dahlin jdahlin at async.com.br
Thu Apr 26 16:47:41 BRT 2007


Author: jdahlin
Date: Thu Apr 26 16:47:41 2007
New Revision: 6454

Added:
   kiwi/trunk/examples/entrymask.py

Log:
* examples/entrymask.py: Add a new example

Added: kiwi/trunk/examples/entrymask.py
==============================================================================
--- (empty file)
+++ kiwi/trunk/examples/entrymask.py	Thu Apr 26 16:47:41 2007
@@ -0,0 +1,23 @@
+import sys
+
+import gtk
+
+from kiwi.ui.entry import KiwiEntry
+
+def main(args):
+    w = gtk.Window()
+    w.set_position(gtk.WIN_POS_CENTER)
+    w.set_size_request(250, -1)
+    w.set_title('ComboEntry example')
+    w.connect('delete-event', gtk.main_quit)
+
+    e = KiwiEntry()
+    e.set_mask('0000-00-00')
+    w.add(e)
+
+    w.show_all()
+    e.set_position(0)
+    gtk.main()
+
+if __name__ == '__main__':
+    sys.exit(main(sys.argv))


More information about the POS-commit mailing list