Skip to content
Snippets Groups Projects
Commit 5e9b37bc authored by Gilbert L Bernstein's avatar Gilbert L Bernstein
Browse files

Attempt to more correctly fix `create_text`

parent be71c20c
No related branches found
No related tags found
No related merge requests found
...@@ -437,9 +437,8 @@ class MockCanvas: ...@@ -437,9 +437,8 @@ class MockCanvas:
cmd = "create_text: x={} y={} text={}".format(x, y, text) cmd = "create_text: x={} y={} text={}".format(x, y, text)
self._draw(cmd) self._draw(cmd)
if font is None: if font is None:
y2 = y font = MockFont(size=20)
else: y2 = y + font.metrics("linespace")
y2 = y + font.metrics("linespace")
if self._allow("create_text", y2): print(cmd) if self._allow("create_text", y2): print(cmd)
def pack(self, expand=None, fill=None): def pack(self, expand=None, fill=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment