|
9 | 9 | """
|
10 | 10 | from traitlets import HasTraits, Int, Unicode
|
11 | 11 | from ipywidgets import Button, Combobox, Dropdown, HTMLMath, Text, Textarea, ToggleButton, register
|
| 12 | +JS_VERSION = '0.7.7' |
12 | 13 |
|
13 | 14 |
|
14 | 15 | class Singleton(HasTraits):
|
@@ -43,73 +44,73 @@ class ButtonSingleton(Button, Singleton):
|
43 | 44 | """Button with tooltip and focus."""
|
44 | 45 | _model_name = Unicode('ButtonSingletonModel').tag(sync=True)
|
45 | 46 | _model_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
46 |
| - _model_module_version = Unicode('^0.7.6').tag(sync=True) |
| 47 | + _model_module_version = Unicode(JS_VERSION).tag(sync=True) |
47 | 48 | _view_name = Unicode('ButtonSingletonView').tag(sync=True)
|
48 | 49 | _view_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
49 |
| - _view_module_version = Unicode('^0.7.6').tag(sync=True) |
| 50 | + _view_module_version = Unicode(JS_VERSION).tag(sync=True) |
50 | 51 |
|
51 | 52 |
|
52 | 53 | @register
|
53 | 54 | class ComboboxSingleton(Combobox, Singleton):
|
54 | 55 | """Combobox with tooltip and focus."""
|
55 | 56 | _model_name = Unicode('ComboboxSingletonModel').tag(sync=True)
|
56 | 57 | _model_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
57 |
| - _model_module_version = Unicode('^0.7.6').tag(sync=True) |
| 58 | + _model_module_version = Unicode(JS_VERSION).tag(sync=True) |
58 | 59 | _view_name = Unicode('ComboboxSingletonView').tag(sync=True)
|
59 | 60 | _view_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
60 |
| - _view_module_version = Unicode('^0.7.6').tag(sync=True) |
| 61 | + _view_module_version = Unicode(JS_VERSION).tag(sync=True) |
61 | 62 |
|
62 | 63 |
|
63 | 64 | @register
|
64 | 65 | class DropdownSingleton(Dropdown, Singleton):
|
65 | 66 | """Dropdown with tooltip and focus."""
|
66 | 67 | _model_name = Unicode('DropdownSingletonModel').tag(sync=True)
|
67 | 68 | _model_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
68 |
| - _model_module_version = Unicode('^0.7.6').tag(sync=True) |
| 69 | + _model_module_version = Unicode(JS_VERSION).tag(sync=True) |
69 | 70 | _view_name = Unicode('DropdownSingletonView').tag(sync=True)
|
70 | 71 | _view_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
71 |
| - _view_module_version = Unicode('^0.7.6').tag(sync=True) |
| 72 | + _view_module_version = Unicode(JS_VERSION).tag(sync=True) |
72 | 73 |
|
73 | 74 |
|
74 | 75 | @register
|
75 | 76 | class HTMLMathSingleton(HTMLMath, Singleton):
|
76 | 77 | """HTML Math widget with tooltip and focus."""
|
77 | 78 | _model_name = Unicode('HTMLMathSingletonModel').tag(sync=True)
|
78 | 79 | _model_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
79 |
| - _model_module_version = Unicode('^0.7.6').tag(sync=True) |
| 80 | + _model_module_version = Unicode(JS_VERSION).tag(sync=True) |
80 | 81 | _view_name = Unicode('HTMLMathSingletonView').tag(sync=True)
|
81 | 82 | _view_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
82 |
| - _view_module_version = Unicode('^0.7.6').tag(sync=True) |
| 83 | + _view_module_version = Unicode(JS_VERSION).tag(sync=True) |
83 | 84 |
|
84 | 85 |
|
85 | 86 | @register
|
86 | 87 | class TextSingleton(Text, Singleton):
|
87 | 88 | """Input text with tooltip and focus."""
|
88 | 89 | _model_name = Unicode('TextSingletonModel').tag(sync=True)
|
89 | 90 | _model_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
90 |
| - _model_module_version = Unicode('^0.7.6').tag(sync=True) |
| 91 | + _model_module_version = Unicode(JS_VERSION).tag(sync=True) |
91 | 92 | _view_name = Unicode('TextSingletonView').tag(sync=True)
|
92 | 93 | _view_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
93 |
| - _view_module_version = Unicode('^0.7.6').tag(sync=True) |
| 94 | + _view_module_version = Unicode(JS_VERSION).tag(sync=True) |
94 | 95 |
|
95 | 96 |
|
96 | 97 | @register
|
97 | 98 | class TextareaSingleton(Textarea, Singleton):
|
98 | 99 | """Text area with tooltip and focus."""
|
99 | 100 | _model_name = Unicode('TextareaSingletonModel').tag(sync=True)
|
100 | 101 | _model_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
101 |
| - _model_module_version = Unicode('^0.7.6').tag(sync=True) |
| 102 | + _model_module_version = Unicode(JS_VERSION).tag(sync=True) |
102 | 103 | _view_name = Unicode('TextareaSingletonView').tag(sync=True)
|
103 | 104 | _view_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
104 |
| - _view_module_version = Unicode('^0.7.6').tag(sync=True) |
| 105 | + _view_module_version = Unicode(JS_VERSION).tag(sync=True) |
105 | 106 |
|
106 | 107 |
|
107 | 108 | @register
|
108 | 109 | class ToggleButtonSingleton(ToggleButton, Singleton):
|
109 | 110 | """Toggle button with tooltip and focus."""
|
110 | 111 | _model_name = Unicode('ToggleButtonSingletonModel').tag(sync=True)
|
111 | 112 | _model_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
112 |
| - _model_module_version = Unicode('^0.7.6').tag(sync=True) |
| 113 | + _model_module_version = Unicode(JS_VERSION).tag(sync=True) |
113 | 114 | _view_name = Unicode('ToggleButtonSingletonView').tag(sync=True)
|
114 | 115 | _view_module = Unicode('sage-combinat-widgets').tag(sync=True)
|
115 |
| - _view_module_version = Unicode('^0.7.6').tag(sync=True) |
| 116 | + _view_module_version = Unicode(JS_VERSION).tag(sync=True) |
0 commit comments