cifrado r72 - in trunk: . package/cifrado/codeurs



Author: bersace
Date: Fri Apr  4 12:39:43 2008
New Revision: 72
URL: http://svn.gnome.org/viewvc/cifrado?rev=72&view=rev

Log:
Ajout d'un chiffreur tictactoe.


Added:
   trunk/package/cifrado/codeurs/tictactoe.py
Modified:
   trunk/ChangeLog
   trunk/cifrado.in

Modified: trunk/cifrado.in
==============================================================================
--- trunk/cifrado.in	(original)
+++ trunk/cifrado.in	Fri Apr  4 12:39:43 2008
@@ -4,7 +4,7 @@
 import sys
 import gtk
 
-sys.path.append("package")
+sys.path.prepend("package")
 sys.path.append("@PKGPYTHONDIR@")
 
 from    cifrado.cifrado import Cifrado

Added: trunk/package/cifrado/codeurs/tictactoe.py
==============================================================================
--- (empty file)
+++ trunk/package/cifrado/codeurs/tictactoe.py	Fri Apr  4 12:39:43 2008
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+
+# Cifrado - Chiffrer et imprimer les messages de grand-jeu
+# Copyright  2006-2007 Ãtienne Bersac â Tous droits rÃservÃs.
+
+import  gtk
+from    ..      import    codeur
+
+def     charger(node):
+    return Codeur()
+
+class Codeur(codeur.Codeur):
+    nom = 'Tic Tac Toe'
+
+    def convertir(self, text):
+        return self.strip_special_chars(text)
+
+    def get_police(self):
+        return 'TICTACTO 16'
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]