Commit Graph

44 Commits

Author SHA1 Message Date
Sylvain Corlay
f1cc2d1cc6 Allow a comparison operator 'equals' to be set for reverse lookup 2015-02-03 19:33:03 +00:00
Nicholas Bollweg
6a372a4c66 squashing the whitespace changes 2015-01-31 00:02:20 -05:00
Jonathan Frederic
ab409d1966 Hide variables that shouldn't be exposed to the user 2014-12-12 07:51:03 -08:00
Jonathan Frederic
22168a538e Typo fix 2014-12-02 13:18:55 -08:00
Jonathan Frederic
592112f0fa Don't magically convert values to a list of tuples. 2014-12-02 09:22:16 -08:00
Jonathan Frederic
c8ef47b03b Fix readonly lock logic. 2014-12-01 16:27:17 -08:00
Thomas Kluyver
99e6d35808 Fix variable name 2014-11-24 15:41:38 -08:00
Thomas Kluyver
694e32c938 Import Tuple traitlet for Selection widget 2014-11-24 15:41:37 -08:00
Jonathan Frederic
79fa062310 Make selection widget respect order. 2014-11-24 15:40:18 -08:00
Jonathan Frederic
52a0314719 Something 2014-11-24 15:40:18 -08:00
Sylvain Corlay
ed5e602950 jupyter -> IPython 2014-10-29 21:52:03 -04:00
Sylvain Corlay
374459e5e7 Adding custom keys for core jptr notebook 2014-10-29 21:52:03 -04:00
Sylvain Corlay
18e77a090a registering core widgets 2014-10-29 21:52:03 -04:00
Sylvain Corlay
54a36e7369 forcing value to be in values 2014-10-03 23:47:48 +00:00
Jonathan Frederic
fa1c6f93f1 Added bootstrap3 progress bar classes 2014-08-28 11:15:35 -07:00
Jonathan Frederic
9b4d19bad7 Added Bootstrap specific classes,
and fixed a few bugs here and there...
2014-08-28 11:15:35 -07:00
Jonathan Frederic
36721c73c6 Added some doc strings on the widgets.
Also address the comments Matthias left me.
2014-08-08 14:57:51 -07:00
Jonathan Frederic
ba3033971e Renamed *Widget to *,
depracted old names.
2014-08-08 14:56:11 -07:00
jdavidheiser
e0a40d54cb Update widget_selection.py 2014-04-03 18:45:25 -07:00
jdavidheiser
52e58dce6d Update widget_selection.py 2014-04-03 18:31:30 -07:00
jdavidheiser
9810033988 widget_selection update
Fix for the fact that dictionary randomization sometimes switches the order of the arguments passed to the class on initialization.  This means that, potentially, 'value' can be updated BEFORE 'values', and since the method to update 'value' checks to see whether it exists in 'values', this breaks things.
2014-04-03 16:26:43 -07:00
MinRK
62f318c777 undo failed changes
before raising

otherwise, invalid values were still accepted
2014-02-20 22:57:01 -08:00
MinRK
5823b875eb don't allow empty selection in selection widgets
raises KeyError on failed lookup (in both directions)
2014-02-04 10:38:26 -08:00
MinRK
ca0afa1d8b value_names is read-only 2014-02-03 17:15:06 -08:00
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.
2014-02-03 17:15:06 -08:00
Jonathan Frederic
75b148d40b Renamed widgets...
TextWidget, TextareaWidget, CheckboxWidget, and SelectWidget
2014-01-28 12:51:24 -08:00
Jonathan Frederic
91e82218a8 Changed selection widget API to use labels list
for mapping custom str reprs to items in the selection list
2014-01-22 17:15:10 -08:00
Jonathan Frederic
288b8a0ced s/view_name/_view_name 2014-01-22 16:21:00 -08:00
Jonathan Frederic
9e643f5692 Support multiple types in selection widget. 2014-01-22 15:53:58 -08:00
Jonathan Frederic
e323f64e6d Create base widget classes 2014-01-21 16:44:57 -08:00
Jonathan Frederic
d694666e66 A lot of bug fixes...
Related to 1-to-1 changes
2014-01-16 10:57:18 +00:00
Jonathan Frederic
047a90538f 1-to-1 widget / view mapping 2014-01-16 10:57:18 +00:00
Jonathan Frederic
c1c7bb7563 Everyone uses one model 2014-01-16 10:57:18 +00:00
Jonathan Frederic
b16171ac76 Added sync=True to all view name attrs 2014-01-16 10:57:18 +00:00
Jonathan Frederic
b4a83b6044 sync=True isntead of a keys list 2014-01-16 10:57:18 +00:00
Jonathan Frederic
00650fd64a Dev meeting Jan 2014, widget review day 2 2014-01-16 10:57:18 +00:00
Jonathan Frederic
39aaf7bf88 s/default_view_name/view_name 2014-01-16 10:57:14 +00:00
Jonathan Frederic
21a14e11a4 s/Widget/DOMWidget s/BaseWidget/Widget 2014-01-16 10:57:14 +00:00
Jason Grout
a0b2cc40b8 Make widget keys have more explicit inheritance 2014-01-16 10:57:13 +00:00
Jonathan Frederic
e9fe606ba6 More relative imports, Travis w/ Py3.3 2014-01-16 10:56:03 +00:00
Jonathan Frederic
f2d77f3b78 Added labels to basic widgets 2014-01-16 10:56:02 +00:00
Jonathan Frederic
f422bb9be2 Cleaned up Python widget code. 2014-01-16 10:56:01 +00:00
Jonathan Frederic
76a7a25c12 Fixed stale reference to base.py -> widget.py 2014-01-16 10:56:00 +00:00
Jonathan Frederic
65a6000919 Renamed widget python classes to avoid name stomping 2014-01-16 10:56:00 +00:00