]> SALOME platform Git repositories - tools/eficas.git/blobdiff - Editeur/plusieursintopanel.py
Salome HOME
PN
[tools/eficas.git] / Editeur / plusieursintopanel.py
index a43e57960000c08c175556dca536ded846bfed4a..cfad7288015e7aef028049590011e46e4c2dcddd 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #            CONFIGURATION MANAGEMENT OF EDF VERSION
 # ======================================================================
 # COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
@@ -70,9 +71,9 @@ class PLUSIEURS_INTO_Panel(PLUSIEURS_Panel):
       self.frame_choix = Frame(page)
       self.frame_choix.place(relx=0.6,rely=0.05,relwidth=0.35,relheight=0.7)
       self.frame_boutons = Frame(page)
-      self.frame_boutons.place(relx=0.35,rely=0.87,relwidth=0.3,relheight=0.1)
+      self.frame_boutons.place(relx=0.35,rely=0.87,relwidth=1,relheight=0.1)
       self.frame_aide = Frame(page)
-      self.frame_aide.place(relx=0.1,rely=0.75,relwidth=0.9,relheight=0.1)
+      self.frame_aide.place(relx=0.1,rely=0.75,relwidth=1,relheight=0.15)
       liste_commandes_valeurs = (("<Button-1>",self.selectValeur),
                                  ("<Button-3>",self.deselectValeur),
                                  ("<Double-Button-1>",self.sup_valeur))
@@ -102,8 +103,11 @@ class PLUSIEURS_INTO_Panel(PLUSIEURS_Panel):
       bouton_add.place(relx=0.3,rely=0.35)
       bouton_sup.place(relx=0.3,rely=0.65)
       for but in (bouton_accepter,bouton_annuler):
-          but.pack(side='left',padx=5)
+          but.pack(side='left',padx=3)
       self.Liste_valeurs.affiche_liste()
+      if len(l_valeurs) > 0 :
+          liste_marque=l_valeurs[-1]
+          self.Liste_valeurs.surligne(liste_marque)
       self.Liste_choix.affiche_liste()
       for fram in (self.frame_valeurs,self.frame_boutons_fleches,self.frame_choix,self.frame_boutons):
           fram.bind("<Button-3>",lambda e,s=self,a=bulle_aide : s.parent.appli.affiche_aide(e,a))
@@ -112,9 +116,9 @@ class PLUSIEURS_INTO_Panel(PLUSIEURS_Panel):
       self.aide = Label(self.frame_aide,
                         text = aide,
                         justify='center',
-                        anchor='center',
-                       wraplength=int(self.frame_aide.winfo_width()*0.8))
-      self.aide.place(relx=0.5,rely=0.5,anchor='center',relwidth=1)
+                        anchor='center')
+                       #wraplength=int(self.frame_aide.winfo_width()*0.8))
+      self.aide.place(relx=0.3,rely=0.5,anchor='center',relwidth=1)
 
   def get_aide(self):
       """