Mercurial > libervia-backend
diff frontends/sortilege_old/window.py @ 587:952322b1d490
Remove trailing whitespaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:34 +0100 |
parents | 2a072735e459 |
children | beaf6bec2fcd |
line wrap: on
line diff
--- a/frontends/sortilege_old/window.py Fri Jan 18 17:55:27 2013 +0100 +++ b/frontends/sortilege_old/window.py Fri Jan 18 17:55:34 2013 +0100 @@ -33,7 +33,7 @@ self.__parent=parent self.__code=code self.__hide=False - + self.resize(height, width, y, x) self.oriCoords=self.__coords #FIXME: tres moche, a faire en mieux @@ -88,7 +88,7 @@ # we check that coordinates are under limits self.__coordAdjust(self.__coords) height,width,y,x=self.__coords - + self.window = self.__parent.subwin(height, width, y, x) self.defInsideCoord() @@ -124,15 +124,15 @@ n = self.rWidth-x if not limit else limit encoded = text.encode(self.__code) adjust = len(encoded) - len(text) # hack because addnstr doesn't manage unicode - try: - self.window.addnstr(y, x, encoded, n + adjust, attr) + try: + self.window.addnstr(y, x, encoded, n + adjust, attr) except: #We have to catch error to write on last line last col FIXME: is there a better way ? pass def move(self, y, x): self.window.move(y,x) - + def noutrefresh(self): self.window.noutrefresh()