Skip to content

Commit 1efaeaa

Browse files
Merge pull request #238 from EdwardBetts/spelling
Correct spelling mistakes.
2 parents 620151a + 7b8eebd commit 1efaeaa

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

examples/append_and_remove_widgets_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def main(self):
4545
return main_container
4646

4747
def on_add_a_label_pressed(self, emitter):
48-
# I create a unique id for the new label that will be instanciated
48+
# I create a unique id for the new label that will be instantiated
4949
key = str(len(self.lbls_container.children))
5050
lbl = gui.Label("label id: " + key, style={'border':'1px solid gray', 'margin':'3px'})
5151
self.lbls_container.append(lbl, key)

examples/gauge_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, width, height, _min, _max):
113113
self.set_value(_min)
114114

115115
def value_to_angle(self, value):
116-
return self.base_angle + (value-self.min) * self.scale_angle_range / self.scale_value_range #substraction in order to go clockwise
116+
return self.base_angle + (value-self.min) * self.scale_angle_range / self.scale_value_range #subtraction in order to go clockwise
117117

118118
def angle_to_value(self, angle):
119119
print("angolo:" + str(math.degrees(angle)))

examples/layout_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""
1414

1515
""" This example permits to play with VBox and HBox layouts.
16-
Different style parameters plays a specific role in layout arrangment,
16+
Different style parameters plays a specific role in layout arrangement,
1717
and this little application allows to test each parameter behavior.
1818
"""
1919

remi/gui.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def add_annotation(method):
140140

141141
def 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:

remi/server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def to_websocket(data):
7171

7272

7373
def from_websocket(data):
74-
# encoding end deconding utility function
74+
# encoding end decoding utility function
7575
if pyLessThan3:
7676
return unquote(data)
7777
return unquote(data, encoding='utf-8')
@@ -324,7 +324,7 @@ def _instance(self):
324324
"""
325325

326326
self.session = 0
327-
#cheching previously defined session
327+
#checking previously defined session
328328
if 'cookie' in self.headers:
329329
self.session = parse_session_cookie(self.headers['cookie'])
330330
#if not a valid session id
@@ -350,7 +350,7 @@ def _instance(self):
350350
pending_messages_queue_length = str(self.server.pending_messages_queue_length)
351351
clients[self.session].update_interval = self.server.update_interval
352352

353-
# refreshing the script every instance() call, beacuse of different net_interface_ip connections
353+
# refreshing the script every instance() call, because of different net_interface_ip connections
354354
# can happens for the same 'k'
355355
clients[self.session].js_body_end = """
356356
<script>
@@ -558,7 +558,7 @@ def _instance(self):
558558
failedConnections = 0;
559559
560560
while(pendingSendMessages.length>0){
561-
ws.send(pendingSendMessages.shift()); /*whithout checking ack*/
561+
ws.send(pendingSendMessages.shift()); /*without checking ack*/
562562
}
563563
}
564564
else{
@@ -1017,7 +1017,7 @@ def start(self):
10171017
self._sth.start()
10181018

10191019
def serve_forever(self):
1020-
# we could join on the threads, but join blocks all interupts (including
1020+
# we could join on the threads, but join blocks all interrupts (including
10211021
# ctrl+c, so just spin here
10221022
# noinspection PyBroadException
10231023
try:

0 commit comments

Comments
 (0)