Skip to content

Commit

Permalink
Fix Window.get_char() error (one argument instead of two)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbarylka committed Mar 18, 2018
1 parent 16ff9f8 commit 0dc4df6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,8 @@ def draw_frame(self, x, y, width, height, string, fg=Ellipsis, bg=Ellipsis):
def get_char(self, x, y):
# inherit docstring
x, y = self._normalizePoint(x, y)
return self.console.get_char(*self._translate(x, y))
xtrans, ytrans = self._translate(x, y)
return self.console.get_char(xtrans, ytrans)

def __repr__(self):
return "<Window(X=%i Y=%i Width=%i Height=%i)>" % (self.x, self.y,
Expand Down

0 comments on commit 0dc4df6

Please sign in to comment.