Salome HOME
projects
/
tools
/
eficas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PN report du patch V1_6p2
[tools/eficas.git]
/
Editeur
/
options.py
diff --git
a/Editeur/options.py
b/Editeur/options.py
index d08c6c2e897901f486ffdd275a6dc211d8e09c4c..d2b270c129685b3dc55a5ae22da8df9eeeb749ef 100644
(file)
--- a/
Editeur/options.py
+++ b/
Editeur/options.py
@@
-1,3
+1,4
@@
+# -*- coding: utf-8 -*-
# CONFIGURATION MANAGEMENT OF EDF VERSION
# ======================================================================
# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
# CONFIGURATION MANAGEMENT OF EDF VERSION
# ======================================================================
# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
@@
-21,18
+22,21
@@
"""
# Modules Python
import os,string
"""
# Modules Python
import os,string
-from tkFileDialog import *
# Modules Eficas
# Modules Eficas
+from widgets import askopenfilename
+# l'option affichage_commandes peut prendre les valeurs "groupes" ou "alphabetic"
+affichage_commandes="alphabetic"
class OPTIONS:
menu_defs=[
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=[]
]
button_defs=[]
@@
-41,6
+45,14
@@
class OPTIONS:
self.appli=appli
self.parent=parent
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
def choix_cata_developpeur(self):
"""
Cette méthode demande à l'utilisateur-développeur d'indiquer quel catalogue
@@
-51,7
+63,7
@@
class OPTIONS:
file = askopenfilename(title="Choix d'un catalogue personnel",
defaultextension=".py",
filetypes = ( ("Catalogue", "cata*.py"),))
file = askopenfilename(title="Choix d'un catalogue personnel",
defaultextension=".py",
filetypes = ( ("Catalogue", "cata*.py"),))
- if file
!= ''
:
+ if file :
self.parent.update_idletasks()
self.appli.reset_affichage_infos()
rep_fic = os.path.dirname(file)
self.parent.update_idletasks()
self.appli.reset_affichage_infos()
rep_fic = os.path.dirname(file)