Skip to content

Commit e46fb7b

Browse files
committed
Fix a bug with clashing member and property names
1 parent ab003c6 commit e46fb7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ev3dev.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ def alignup(n, m):
21572157

21582158
self._img = Image.new("1", (alignup(self.xres, 32), self.yres), "white")
21592159

2160-
self.draw = ImageDraw.Draw(self._img)
2160+
self._draw = ImageDraw.Draw(self._img)
21612161

21622162
@property
21632163
def xres(self):
@@ -2187,13 +2187,13 @@ def draw(self):
21872187
Example::
21882188
lcd.draw.rectangle((10,10,60,20), fill='black')
21892189
"""
2190-
return self.draw
2190+
return self._draw
21912191

21922192
def clear(self):
21932193
"""
21942194
Clears the LCD screen
21952195
"""
2196-
self.draw.rectangle(((0,0), self.shape), fill="white")
2196+
self._draw.rectangle(((0,0), self.shape), fill="white")
21972197

21982198
def update(self):
21992199
"""

0 commit comments

Comments
 (0)