tests/make_select.py
changeset 63 2a0e04091898
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/make_select.py	Sat Jan 19 13:05:21 2013 +0100
@@ -0,0 +1,24 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+import sys
+sys.path.append('..')
+
+from tuikit.common import *
+
+XSel = make_select('left', 'right', 'bottom', 'top')
+print(XSel)
+
+sel = XSel()
+print('XSel().selected:', sel.selected)
+
+try:
+    sel.update('center')
+except ValueError as e:
+    print('Error:', e)
+
+try:
+    pure_sel = Select()
+except TypeError as e:
+    print('Error:', e)
+