@@ -140,7 +140,7 @@ def add_annotation(method):
140140
141141def decorate_constructor_parameter_types (type_list ):
142142 """ Private decorator for use in the editor.
143- Allows Editor to instanciate widgets.
143+ Allows Editor to instantiate widgets.
144144
145145 Args:
146146 params (str): The list of types for the widget
@@ -229,7 +229,7 @@ def __init__(self, attributes = {}, _type = '', _class = None, **kwargs):
229229 attributes (dict): The attributes to be applied.
230230 _type (str): HTML element type or ''
231231 _class (str): CSS class or '' (defaults to Class.__name__)
232- id (str): the unique identifier for the class instance, usefull for public API definition.
232+ id (str): the unique identifier for the class instance, useful for public API definition.
233233 """
234234 self ._parent = None
235235
@@ -260,7 +260,7 @@ def __init__(self, attributes = {}, _type = '', _class = None, **kwargs):
260260 self ._classes = []
261261 self .add_class (self .__class__ .__name__ if _class == None else _class )
262262
263- #this variable will contain the repr of this tag, in order to avoid unuseful operations
263+ #this variable will contain the repr of this tag, in order to avoid useless operations
264264 self ._backup_repr = ''
265265
266266 @property
@@ -926,7 +926,7 @@ def define_grid(self, matrix):
926926 """Populates the Table with a list of tuples of strings.
927927
928928 Args:
929- matrix (list): list of iterables of strings (lists or someting else).
929+ matrix (list): list of iterables of strings (lists or something else).
930930 Items in the matrix have to correspond to a key for the children.
931931 """
932932 self .style ['grid-template-areas' ] = '' .join ("'%s'" % (' ' .join (x )) for x in matrix )
@@ -2354,15 +2354,15 @@ def __init__(self, default_value=100, min_value=100, max_value=5000, step=1, all
23542354 min (int, float, str):
23552355 max (int, float, str):
23562356 step (int, float, str):
2357- allow_editing (bool): If true allow editing the value using backpspace/delete/enter (othewise
2357+ allow_editing (bool): If true allow editing the value using backpspace/delete/enter (otherwise
23582358 only allow entering numbers)
23592359 kwargs: See Widget.__init__()
23602360 """
23612361 super (SpinBox , self ).__init__ ('number' , str (default_value ), ** kwargs )
23622362 self .attributes ['min' ] = str (min_value )
23632363 self .attributes ['max' ] = str (max_value )
23642364 self .attributes ['step' ] = str (step )
2365- # eat non-numeric input (return false to stop propogation of event to onchange listener)
2365+ # eat non-numeric input (return false to stop propagation of event to onchange listener)
23662366 js = 'var key = event.keyCode || event.charCode;'
23672367 js += 'return (event.charCode >= 48 && event.charCode <= 57)'
23682368 if allow_editing :
0 commit comments