X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Editeur%2Foptions.py;h=db1d1b6f81cfbc5b375fc6a5b85bf096adabd964;hb=c7c7c2d18466e804810c1ed986342f22b16d449a;hp=d08c6c2e897901f486ffdd275a6dc211d8e09c4c;hpb=e095b1796f3b02388823f3334f68218169855104;p=tools%2Feficas.git diff --git a/Editeur/options.py b/Editeur/options.py index d08c6c2e..db1d1b6f 100644 --- a/Editeur/options.py +++ b/Editeur/options.py @@ -25,14 +25,17 @@ from tkFileDialog import * # Modules Eficas +# l'option affichage_commandes peut prendre les valeurs "groupes" ou "alphabetic" +affichage_commandes="alphabetic" class OPTIONS: menu_defs=[ - ('Options',[ - ("Catalogue développeur",'choix_cata_developpeur'), - ] - ) + ('Options',[ + ("Affichage commandes",(("alphabétique",'&affichage_alpha'),("groupes",'&affichage_grp'))), + # ("Catalogue développeur",'choix_cata_developpeur'), + ] + ) ] button_defs=[] @@ -41,6 +44,14 @@ class OPTIONS: self.appli=appli self.parent=parent + def affichage_grp(self): + global affichage_commandes + affichage_commandes="groupes" + + def affichage_alpha(self): + global affichage_commandes + affichage_commandes="alphabetic" + def choix_cata_developpeur(self): """ Cette méthode demande à l'utilisateur-développeur d'indiquer quel catalogue