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
This commit is contained in:
parent
451d574a8f
commit
3d5c5ada3c
1 changed files with 557 additions and 105 deletions
|
|
@ -23,7 +23,6 @@ import urwid
|
|||
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 @@ class Password(urwid.Edit):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue