From 076bd03e01673a45a7b1ae434a2194842d125ecd Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 15 Dec 2013 10:31:05 -0500 Subject: [PATCH] Refactored the height/width members of displays and actors from integers to methods that compute based on the type of display (e.g., a text object is differently sized in curses than on gtk or whatever) --- display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display.py b/display.py index 8af7d4f..394e008 100755 --- a/display.py +++ b/display.py @@ -97,7 +97,7 @@ class CursesDisplay(Display): def width(self, actorObj=None): if actorObj: - return actor.width(self) + return actorObj.width(self) return self.__screen__.getmaxyx()[1] def height(self, actorObj=None):