Remove trailing whitespaces.
This commit is contained in:
parent
310e2cc347
commit
27b3592e16
1 changed files with 899 additions and 899 deletions
|
|
@ -33,7 +33,7 @@ class Window():
|
|||
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 @@ class Window():
|
|||
# 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 @@ class Window():
|
|||
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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue