affich_tools est déprécié, utilise affichage
This commit is contained in:
parent
46b5aca99f
commit
b9bd5ab1fc
3 changed files with 13 additions and 9 deletions
|
@ -17,7 +17,7 @@ if '/usr/scripts' not in sys.path:
|
|||
from pythondialog import Dialog
|
||||
from pythondialog import error as DialogError
|
||||
|
||||
from gestion.affich_tools import get_screen_size, coul
|
||||
from gestion import affichage
|
||||
|
||||
import lc_ldap.shortcuts
|
||||
import lc_ldap.objets as objets
|
||||
|
@ -347,7 +347,7 @@ class Dialog(CPS.Dialog):
|
|||
# pour prendre en compte la largeur du widget dialog
|
||||
del items[:] # On vide la liste pour la modifier en place
|
||||
items_id = {}
|
||||
(line, col) = get_screen_size()
|
||||
(col, line) = affichage.getTerminalSize()
|
||||
for c in classes:
|
||||
items.extend(olist[c])
|
||||
items_s = printing.sprint_list(olist[c], col-20).encode('utf-8').split('\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue