diff --git a/INSTALL.fr b/INSTALL.fr index 5de4eac6..92dc02bb 100644 --- a/INSTALL.fr +++ b/INSTALL.fr @@ -3,9 +3,9 @@ -PLATEFORMES SUPPORTEES +PLATEFORMES SUPPORTÉES ====================== -(c.a.d : j'ai entendu dire que la compilation a été réalisée avec succès sur..) +(c.à.d. : j'ai entendu dire que la compilation a été réalisée avec succès sur..) - Intel GNU/Linux Conectiva 5.9 (beta) - Intel GNU/Linux Slackware @@ -49,7 +49,7 @@ Tout patch qui pourrait faciliter l'adaptation est le bienvenu. -PRE-REQUIS +PRÉ-REQUIS ========== Les logiciels suivants sont nécessaires à l'utilisation de Window Maker : @@ -124,8 +124,6 @@ fonctionner aussi bien. Si vous voulez disposer des traductions en d'autres langues, GNU gettext est nécessaire. Les autres versions de gettext sont incompatibles et ne fonctionneront pas. - If you want to use translated messages, you will need GNU gettext. - Other versions of gettext are not compatible and will not work. Vous trouverez la version GNU sur ftp://ftp.gnu.org @@ -143,12 +141,12 @@ configurera Window Maker avec le support int Afin d'obtenir la liste des autres options, exécutez ./configure --help --with-libs-from - ajoute des chemins d"accès pour la recherche des librairies. + ajoute des chemins d'accès pour la recherche des librairies. L'option -L doit précéder chaque chemin d'accès, comme suit : --with-libs-from="-L/opt/libs -L/usr/local/lib" --with-incs-from - ajoute des chemins d"accès pour la recherche des fichiers d'en-tête. + ajoute des chemins d'accès pour la recherche des fichiers d'en-tête. L'option -I doit précéder chaque chemin d'accès, comme suit : --with-incs-from="-I/opt/headers -I/usr/local/include" @@ -217,7 +215,7 @@ Afin d'obtenir la liste des autres options, ex désactive l'utilisation de "shaped windows" (pour oclock, xeyes, etc.). -NOTES SPECIFIQUES AUX PLATEFORMES +NOTES SPÉCIFIQUES AUX PLATEFORMES ================================= - machines DEC/Alpha @@ -242,7 +240,7 @@ Sujet : Re : Est-ce que le paquetage WindowMaker fonctionne correctement sur Alp > pour compiler sur Alpha? Notez bien : les Alphas dont je me sers ne sont jamais sous X et ne sont pas près -de le faire. +de l'être. Bien souvent, la configuration des Alphas n'inclut qu'un volume ridiculement petit de mémoire partagée. Aussi il n'est pas étonnant qu'un grand nombre @@ -313,7 +311,7 @@ est soumis * si vous rencontrez des messages d'erreur en rapport avec "--no-reexec", désinstallez libtool-1.2b et installez libtool-1.3. libtool-1.3 peut être trouvé sur ftp.gnu.org. - Consultez aussi la section PROBLEMES; + Consultez aussi la section PROBLÈMES; * si vous aviez auparavant installé le paquetage de Window Maker livré avec RedHat et que vous voulez installer maintenant manuellement une nouvelle @@ -359,7 +357,7 @@ INSTALLATION Compiler Window Maker --------------------- - Pour aller vite, tapez ce qui suit sous un prompt shell : + Pour aller vite, tapez ce qui suit dans un prompt shell : ./configure make @@ -369,7 +367,7 @@ puis, loguez-vous en tant que root and tapez : make install ldconfig -ou, si vous voulez ôter les infos de débogage des exécutables et les +ou, si vous voulez ôter les infos de débogage des exécutables et ainsi les rendre plus petits, tapez plutôt : make install-strip @@ -392,7 +390,7 @@ pouvez faire : ./configure --enable-kde - 3. (optionnel) Editez src/wconfig.h avec votre editeur de texte favori et + 3. (optionnel) Éditez src/wconfig.h avec votre éditeur de texte favori et et modifiez sont contenu à votre guise. 4. Compilez. Il faut juste taper : @@ -471,7 +469,7 @@ bin/wmaker.inst Bien sûr, /home/jshmoe est supposé être remplacé par votre répertoire personnel. -MISE A JOUR +MISE À JOUR =========== Si vous mettez à jour une version plus ancienne de Window Maker : @@ -482,7 +480,7 @@ Si vous mettez si nécessaire. -PROBLEMES +PROBLÈMES ========= Si vous rencontrez des problèmes pendant la phase de configuration, comme par @@ -492,7 +490,7 @@ du fichier config.log, vous y trouverez peut- ce problème. -== erreur de chargement de polices, même si elles existent +== erreur de chargement de polices, alors qu'elles existent Essayez de recompiler sans le support pour le NLS. diff --git a/WINGs/python/README b/WINGs/python/README index 375cfacd..957dedf9 100644 --- a/WINGs/python/README +++ b/WINGs/python/README @@ -1,6 +1,6 @@ -This is a python wrapper for the WINGs library. With it you can write python -based programs which will have WINGs based graphic interfaces. +This is a python wrapper for the WINGs library, that can be used to write python +based programs with WINGs-based graphic interfaces. This module in not built by default. To build it you need python2.1 or later and swig-1.3.14 or later. @@ -8,14 +8,13 @@ and swig-1.3.14 or later. To build it, first compile and install WINGs. after that run 'make' in this directory. 'make install' will install the python module into the python tree. -run test.py or even WINGs.py for an example. +run test.py or WINGs.py for an example. -the code is not yet finished and probably won't do everything you expect it -to do. +the code is not finished yet and may fail to work as expected in some cases. Note: currently the module expects WINGs installed to build. it won't take the WINGs libraries and header files from the source tree. You need to install WINGs first. Even if an old version of WINGs is already installed, -you still need to nstall the newly built WINGs, else the python module will -be built against the old version +you still need to install the newly built WINGs, else the python module will +be built against the old version. diff --git a/WINGs/python/WINGs.py b/WINGs/python/WINGs.py index 1ac49adc..3d008316 100644 --- a/WINGs/python/WINGs.py +++ b/WINGs/python/WINGs.py @@ -55,6 +55,16 @@ class WMScreen: raise Error, "'%s' is a read-only WMScreen attribute" % name self.__dict__[name] = value + def __delattr__(self, name): + if name in self.__readonly: + #raise AttributeError, "'%s' attribute cannot be deleted from WMScreen instance" % name + raise Error, "'%s' attribute cannot be deleted from WMScreen instance" % name + try: + del(self.__dict__[name]) + except KeyError: + raise AttributeError, "%s instance has no attribute '%s'" % \ + (self.__class__.__name__, name) + def mainLoop(self): wings.pyWMScreenMainLoop(self._o) diff --git a/WINGs/python/setup.py b/WINGs/python/setup.py index 41171cfc..d0a60bee 100755 --- a/WINGs/python/setup.py +++ b/WINGs/python/setup.py @@ -8,24 +8,21 @@ from distutils.extension import Extension ## Get the include dirs wings = os.popen("get-wings-flags --cflags", "r") -lines = [x.strip() for x in wings.readlines()] -flags = reduce(lambda x,y: x+y, [x.split() for x in lines if x]) +flags = wings.read().split() include_dirs = [x[2:] for x in flags] #include_dirs += [".."] wings.close() ## Get the library dirs wings = os.popen("get-wings-flags --ldflags", "r") -lines = [x.strip() for x in wings.readlines()] -flags = reduce(lambda x,y: x+y, [x.split() for x in lines if x]) +flags = wings.read().split() library_dirs = [x[2:] for x in flags] #library_dirs += [".."] wings.close() ## Get the libraries wings = os.popen("get-wings-flags --libs", "r") -lines = [x.strip() for x in wings.readlines()] -flags = reduce(lambda x,y: x+y, [x.split() for x in lines if x]) +flags = wings.read().split() libraries = [x[2:] for x in flags] wings.close()