Mercurial > libervia-backend
diff frontends/sortilege/boxsizer.py @ 70:8f2ed279784b
i18n
- gettext support added in frontends
- first draft of frontends french translation
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Mar 2010 20:33:10 +1100 |
parents | a5b5fb5fc9fd |
children |
line wrap: on
line diff
--- a/frontends/sortilege/boxsizer.py Wed Mar 03 17:12:23 2010 +1100 +++ b/frontends/sortilege/boxsizer.py Fri Mar 05 20:33:10 2010 +1100 @@ -23,12 +23,6 @@ from window import Window import os,pdb - -def echo(message): - return - os.system('echo "'+str(message)+'" >> /tmp/toto') - - class BoxSizer: """This class manage the position of the window like boxes.""" @@ -66,22 +60,17 @@ #if the last win is hidden, we expand previous visible one current_row[-1][2] = current_row[-1][2] + (win.getX() - oriX)+win.getWidth() else: - echo ("ajout de %s à current row" % (win.__class__.__name__)) current_row.append([win, h+y-oriY, w+x-oriX, oriY, oriX]) oriX=oriX+w if oriX!=0: - echo ("ligne visible (dernier: %s)" % win.__class__.__name__) oriY=oriY+h visible_row.append(current_row) elif visible_row: #if all the row is empty, we take the space for box in visible_row[-1]: - echo ("on augmente %s de %d" % (box[0].__class__.__name__, h)) box[1]=box[1]+h oriY=oriY+h #this only happen if it's not the first visible row - else: - echo ("ligne invisible") for row in visible_row: for win in row: