]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authoreficas <>
Tue, 21 Jun 2005 08:59:11 +0000 (08:59 +0000)
committereficas <>
Tue, 21 Jun 2005 08:59:11 +0000 (08:59 +0000)
Aster/prefs.py
Editeur/appli.py

index 078940dbf5db800f93092e09eb4242bc874294be..2522b4251afb648a1ab64bd9510224c5f26dc1ff 100644 (file)
@@ -62,33 +62,33 @@ appli_composants=['readercata','bureau',
 
 menu_defs={ 'bureau': [
               ('Fichier',[
-                           ('Nouveau','newJDC','<Control-n>'),
+                           ('Nouveau','newJDC','<Control-n>','             Ctrl+N'),
                            ('Nouvel INCLUDE','newJDC_include'),
-                           ('Ouvrir','openJDC','<Control-o>'),
-                           ('Enregistrer','saveJDC','<Control-e>'),
-                           ('Enregistrer sous','saveasJDC','<Control-s>'),
+                           ('Ouvrir','openJDC','<Control-o>','                 Ctrl+O'),
+                           ('Enregistrer','saveJDC','<Control-e>','         Ctrl+E'),
+                           ('Enregistrer sous','saveasJDC','<Control-s>','Ctrl+S'),
                            None,
-                           ('Fermer','closeJDC','<Control-f>'),
-                           ('Quitter','exitEFICAS','<Control-q>'),
+                           ('Fermer','closeJDC','<Control-f>','                 Ctrl+F'),
+                           ('Quitter','exitEFICAS','<Control-q>','                 Ctrl+Q'),
                          ]
               ),
               ('Edition',[
-                           ('Copier','copy','<Control-c>'),
-                           ('Couper','cut','<Control-x>'),
-                           ('Coller','paste','<Control-v>'),
+                           ('Copier','copy','<Control-c>','       Ctrl+C'),
+                           ('Couper','cut','<Control-x>','      Ctrl+X'),
+                           ('Coller','paste','<Control-v>','        Ctrl+V'),
                          ]
               ),
               ('Jeu de commandes',[
-                                   ('Rapport de validation','visuCRJDC','<Control-r>'),
-                                   ('Fichier à plat','visu_a_plat','<Control-p>'),
-                                   ('Fichier format v6','visuJDC_py','<Control-t>'),
-                                   ('Fichier source','visu_txt_brut_JDC','<Control-b>'),
-                                   ('Paramètres Eficas','affichage_fichier_ini'),
-                                   ('Mots-clés inconnus','mc_inconnus'),
+               ('Rapport de validation','visuCRJDC','<Control-r>','        Ctrl+R'),
+               ('Fichier à plat','visu_a_plat','<Control-p>','                     Ctrl+P'),
+               ('Fichier format v6','visuJDC_py','<Control-t>','              Ctrl+T'),
+               ('Fichier source','visu_txt_brut_JDC','<Control-b>','                   Ctrl+B'),
+               ('Paramètres Eficas','affichage_fichier_ini'),
+               ('Mots-clés inconnus','mc_inconnus'),
                                   ]
               ),
               ('Aide',[
-                        ('Aide EFICAS','aideEFICAS','<Control-a>'),
+                        ('Aide EFICAS','aideEFICAS','<Control-a>','Ctrl+A'),
                       ]
               ),
              ]
index 23c9f35b03bee16eb72377412680dddf1f849637..629a75ce82801a107dd22bada9e87d5e15846aa0 100644 (file)
@@ -242,15 +242,22 @@ class APPLI:
       radio=None
       for item in itemlist:
          number_item=number_item + 1
+        raccourci_label=""
          if not item :
             menu.add_separator()
          else:
             if len(item)==3:
                raccourci=item[2]
+              raccourci_label="   "+raccourci
                newitem=(item[0],item[1])
             else :
-              raccourci=""
-               newitem=item
+              if len(item)==4:
+                  raccourci=item[2]
+                 raccourci_label="   "+item[3]
+                  newitem=(item[0],item[1])
+              else :
+                 raccourci=""
+                  newitem=item
             item=newitem
             label,method=item
             if type(method) == types.TupleType:
@@ -265,7 +272,7 @@ class APPLI:
                if radio == None:radio=number_item
             else:
                command=getattr(appli_composant,method)
-               menu.add_command(label=label+" "+raccourci,command=command)
+               menu.add_command(label=label+" "+raccourci_label,command=command)
                if raccourci != "" :
                   self.top.bind(raccourci,command)
       # Si au moins un radiobouton existe on invoke le premier