MinRK
d772b4c3da
catch errors at a lower level in interact
...
for cleaner tracebacks in the interact callback than the fallback case
12 years ago
MinRK
ddc22152ea
show traceback in widget handlers
...
rather than logging
closes #5064
12 years ago
MinRK
813e32dfea
set readout=True as default on SliderWidgets
12 years ago
MinRK
7861bee65f
test widget interaction (Python)
12 years ago
MinRK
6d555b7aee
return f with @interact, not just @interact(**kwargs)
12 years ago
MinRK
031b69895c
fix ValueError format message
12 years ago
MinRK
48a56d3156
simplify float/int slider abbreviation logic
...
fixes unhanded case where only one entry is a float
12 years ago
MinRK
7911c6c237
finish removing *args support
12 years ago
MinRK
ad6109692d
ensure range widgets get value that is on a step
12 years ago
MinRK
a58ca8a0a0
s/const/fixed/
12 years ago
MinRK
2d2c5beb0e
move @annotate to py3compat
12 years ago
MinRK
3053a855a9
remove positional arg support from interact
12 years ago
MinRK
feab63754d
update interact now that SelectionWidget.values is a dict
12 years ago
Brian E. Granger
88fb17b182
Adding const pseudo-widget for fixing arguments to interact.
12 years ago
Brian E. Granger
6e8c63ea19
Adding decorator forms of interact. Yeah!
12 years ago
Brian E. Granger
dd9a6efaed
Utter interact insanity.
...
This involves a bunch of really complicated logic to handle the
different ways that function parameters can be processed in Python.
Most importantly, this includes support for *args in interact.
12 years ago
Brian E. Granger
55cddce784
Fixing interact imports.
12 years ago
Brian E. Granger
2ef393aaa3
Renaming interact.py->interaction.py to improve imports.
12 years ago
Thomas Kluyver
a96c228554
Get widgets from function annotations and default arguments.
...
Also, preserve the order of function parameters from the signature where
possible.
This uses a backport of the Python 3.3 signature machinery that @minrk
found and improved.
12 years ago
Brian E. Granger
5853bb8ff7
Adding .widget to function.
12 years ago
Brian E. Granger
93047f1d3c
Updating interact to work with latest state of widgets.
12 years ago
Brian E. Granger
faebb43e01
Updating interact to new APIs.
12 years ago
Brian E. Granger
1d6cde4877
Adding interact.py.
12 years ago
MinRK
5823b875eb
don't allow empty selection in selection widgets
...
raises KeyError on failed lookup (in both directions)
12 years ago
MinRK
ca0afa1d8b
value_names is read-only
12 years ago
MinRK
3e1f2e22f8
Make `SelectionWidget.values` a dict
...
rename 'labels' and '_value' to 'value_names' and 'value_name'.
To specify a mapping of value names and values, use a dict.
If you specify `values=[list]`, then an OrderedDict will be used.
Assignment after construction only supports a dict.
12 years ago
Brian E. Granger
2b7310f794
Merge pull request #4933 from jdfreder/widget-model-name
...
Small Widget inconsistency fixes
12 years ago
Brian E. Granger
cef93c8cfb
Adding initial version of readout to sliders.
12 years ago
Thomas Kluyver
c633256fc9
Fix some formatting in widget docstrings
12 years ago
Jonathan Frederic
865c7330a9
s/model_name/_model_name
12 years ago
Jonathan Frederic
75b148d40b
Renamed widgets...
...
TextWidget, TextareaWidget, CheckboxWidget, and SelectWidget
12 years ago
MinRK
36db60eacb
review pass on Python-side of widgets
...
- remove variable signature complexity
- use a few more traitlets as appropriate
12 years ago
Jonathan Frederic
e793d022b5
Callback dispatcher return callback value.
...
Also import it with the widgets namespace so it can be used elsewhere.
12 years ago
Jonathan Frederic
00b39af9cf
Fixed type in container
...
._children was not being set... Instead the value was being returned (useless).
12 years ago
Jonathan Frederic
91e82218a8
Changed selection widget API to use labels list
...
for mapping custom str reprs to items in the selection list
12 years ago
Jonathan Frederic
288b8a0ced
s/view_name/_view_name
12 years ago
Jonathan Frederic
2d13d05e9c
Replace O(N^2) algorithm with a faster one.
12 years ago
Jonathan Frederic
9e643f5692
Support multiple types in selection widget.
12 years ago
Jonathan Frederic
629d65da89
Fixed context errors and a couple of typos to get the tests working again
12 years ago
Jonathan Frederic
d7b86104b8
Fixed typo - else -> elif
12 years ago
Jonathan Frederic
046280b51a
s/ModalView/PopupView
12 years ago
Jonathan Frederic
e323f64e6d
Create base widget classes
12 years ago
Jonathan Frederic
b432b4840f
Use CUnicode for width and height in ImageWidget
12 years ago
Jonathan Frederic
e823d386ab
Fixed name conflict with _property_lock
12 years ago
Jonathan Frederic
077bd5c6ca
Added new CallbackDispatcher class
12 years ago
Jonathan Frederic
611614b6eb
Document in widget packing that vaues must be JSON-able.
12 years ago
Jonathan Frederic
cf05ef015a
ict comprehension and list comprehension in pack/unpack widgets
12 years ago
Jonathan Frederic
cb6094281c
s/custom_content/content
12 years ago
Jonathan Frederic
5fe860ed26
Added doc strings to properties in widget.py
12 years ago
Jonathan Frederic
1689eed2f6
Reorganized attrs in widget.py
12 years ago