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)

This commit is contained in:
2013-12-15 10:31:05 -05:00
parent 2265107d6e
commit 076bd03e01

View File

@@ -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):