]>
Softwares of Agnibho - life.git/blob - __main__.py
9 app
. master
. title ( "Conway's Game of Life - Agnibho.com" )
14 width
= int ( sys
. argv
[ 1 ])
15 depth
= int ( sys
. argv
[ 2 ])
17 print "Dimensions must be integer"
19 elif ( len ( sys
. argv
)== 2 ):
22 print "Argument not recognized"
24 if ( width
< 10 or depth
< 10 ):
27 print "Dimensions must be more than 10x10"
29 elif ( width
> app
. winfo_screenwidth ()/ 10 or depth
>( app
. winfo_screenheight ()- 150 )/ 10 ):
32 print "Dimensions are too large to fit in the screen. Maximum allowed dimension " + str ( app
. winfo_screenwidth ()/ 10 )+ "x" + str (( app
. winfo_screenheight ()- 150 )/ 10 )
35 app
. render ( width
, depth
)
37 app
. parsefile ( filename
)