cca
diff Interface.py @ 49:94406d1874a2
repr in State, little optimized Automata, cell_size = 8, delay = 1
| author | darkhan | 
|---|---|
| date | Mon, 06 Dec 2010 12:36:59 +0300 | 
| parents | dd0494c85c81 | 
| children | 9cbbff6dbbaf f411a1e0a5cb | 
   line diff
1.1 --- a/Interface.py Sun Dec 05 17:23:16 2010 +0300 1.2 +++ b/Interface.py Mon Dec 06 12:36:59 2010 +0300 1.3 @@ -6,7 +6,7 @@ 1.4 1.5 class Handlers(object): 1.6 1.7 - def __init__(self, cell_size=10, line_width=1 ,delay=100, offset_x=0, offset_y=0):# cell_size is size of cell, including line width, if there is it 1.8 + def __init__(self, cell_size=8, line_width=1 ,delay=1, offset_x=0, offset_y=0):# cell_size is size of cell, including line width, if there is it 1.9 self.cell_size = cell_size 1.10 self.line_width = line_width 1.11 self.delay = delay 1.12 @@ -249,7 +249,7 @@ 1.13 canvas = Canvas(root, background="grey") 1.14 canvas.config(width=500, height=400) 1.15 1.16 -automata = Automata(50, 50) 1.17 +automata = Automata() 1.18 handlers = Handlers() 1.19 1.20 canvas.bind("<1>", handlers.press1)
