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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user