diff frontends/primitivus/custom_widgets.py @ 144:80661755ea8d

Primitivus: Tarot card game implementation - quick frontend: card_game added - wix: card_game splitted with quick frontend - tools: new game library - primitivus: new card_game widget (not finished yet) - primitivus: SàT XML UI management: first draft
author Goffi <goffi@goffi.org>
date Mon, 26 Jul 2010 19:43:44 +0800
parents e7b8871e9f52
children 7fcb4f083686
line wrap: on
line diff
--- a/frontends/primitivus/custom_widgets.py	Thu Jul 22 22:47:29 2010 +0800
+++ b/frontends/primitivus/custom_widgets.py	Mon Jul 26 19:43:44 2010 +0800
@@ -23,7 +23,6 @@
 from urwid.escape import utf8decode
 
 class Password(urwid.Edit):
-    toto=0
     """Edit box which doesn't show what is entered (show '*' or other char instead)"""
 
     def __init__(self, *args, **kwargs):
@@ -47,11 +46,6 @@
         super(Password,self).insert_text(text)
 
     def render(self, size, focus=False):
-        Password.toto+=1
-        if Password.toto==30:
-            import os,pdb
-            os.system('reset')
-            pdb.set_trace()
         return super(Password, self).render(size, focus)
 
 class AdvancedEdit(urwid.Edit):