Skip to content

Commit 841b23c

Browse files
opoplawskibenoit-pierre
authored andcommitted
Fix spelling of rhomboid
1 parent 3767bac commit 841b23c

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

examples/draw-proto.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def loop(self):
107107
current.motion(e)
108108

109109
# A drawed objects, consisting of either a single
110-
# romboid, or two romboids connected by a winding line
110+
# rhomboid, or two rhomboids connected by a winding line
111111

112112
class Movement(object):
113113
def __init__(self, win, ev):
@@ -121,7 +121,7 @@ def __init__(self, win, ev):
121121
self.time = ev.time
122122
self.lines = [(ev.event_x, ev.event_y)]
123123

124-
self.first = Romboid(self.win, ev)
124+
self.first = Rhomboid(self.win, ev)
125125
self.last = None
126126

127127
def motion(self, ev):
@@ -182,7 +182,7 @@ def motion(self, ev):
182182
def finish(self, ev):
183183
self.motion(ev)
184184
if len(self.lines) > 1:
185-
self.last = Romboid(self.win, ev)
185+
self.last = Rhomboid(self.win, ev)
186186

187187
self.left = min(ev.event_x - 5, self.left)
188188
self.right = max(ev.event_x + 5, self.right)
@@ -206,16 +206,16 @@ def expose(self, ev):
206206
self.last.draw()
207207

208208

209-
# A romboid, drawed around the Movement endpoints
210-
class Romboid(object):
209+
# A rhomboid, drawed around the Movement endpoints
210+
class Rhomboid(object):
211211
def __init__(self, win, ev):
212212
self.win = win
213213
self.x = ev.event_x
214214
self.y = ev.event_y
215215
self.draw()
216216

217217
def draw(self):
218-
# Draw the segments of the romboid
218+
# Draw the segments of the rhomboid
219219
PolyLine(self.win.d, None,
220220
X.CoordModePrevious,
221221
self.win.window,

examples/draw.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def loop(self):
118118
sys.exit(0)
119119

120120
# A drawed objects, consisting of either a single
121-
# romboid, or two romboids connected by a winding line
121+
# rhomboid, or two rhomboids connected by a winding line
122122

123123
class Movement(object):
124124
def __init__(self, win, ev):
@@ -132,7 +132,7 @@ def __init__(self, win, ev):
132132
self.time = ev.time
133133
self.lines = [(ev.event_x, ev.event_y)]
134134

135-
self.first = Romboid(self.win, ev)
135+
self.first = Rhomboid(self.win, ev)
136136
self.last = None
137137

138138
def motion(self, ev):
@@ -185,7 +185,7 @@ def motion(self, ev):
185185
def finish(self, ev):
186186
self.motion(ev)
187187
if len(self.lines) > 1:
188-
self.last = Romboid(self.win, ev)
188+
self.last = Rhomboid(self.win, ev)
189189

190190
self.left = min(ev.event_x - 5, self.left)
191191
self.right = max(ev.event_x + 5, self.right)
@@ -207,16 +207,16 @@ def expose(self, ev):
207207
self.last.draw()
208208

209209

210-
# A romboid, drawed around the Movement endpoints
211-
class Romboid(object):
210+
# A rhomboid, drawed around the Movement endpoints
211+
class Rhomboid(object):
212212
def __init__(self, win, ev):
213213
self.win = win
214214
self.x = ev.event_x
215215
self.y = ev.event_y
216216
self.draw()
217217

218218
def draw(self):
219-
# Draw the segments of the romboid
219+
# Draw the segments of the rhomboid
220220
self.win.window.poly_line(self.win.gc, X.CoordModePrevious,
221221
[(self.x, self.y - 5),
222222
(5, 5),

0 commit comments

Comments
 (0)