changeset 63 | 2a0e04091898 |
62:2f61931520c9 | 63:2a0e04091898 |
---|---|
1 #!/usr/bin/env python3 |
|
2 # -*- coding: utf-8 -*- |
|
3 |
|
4 import sys |
|
5 sys.path.append('..') |
|
6 |
|
7 from tuikit.common import * |
|
8 |
|
9 XSel = make_select('left', 'right', 'bottom', 'top') |
|
10 print(XSel) |
|
11 |
|
12 sel = XSel() |
|
13 print('XSel().selected:', sel.selected) |
|
14 |
|
15 try: |
|
16 sel.update('center') |
|
17 except ValueError as e: |
|
18 print('Error:', e) |
|
19 |
|
20 try: |
|
21 pure_sel = Select() |
|
22 except TypeError as e: |
|
23 print('Error:', e) |
|
24 |