
4 9 2 C a pít ul o 1 1
d e f d r a w c e l l ( r o w , c o l , c o l o r ):
g l o b a l g r i d v i e w , c e l l s i z e
i f c o l o r = = ' b l a c k ':
o u t l i n e = ' g r e y '
e l s e :
o u t l i n e = ' w h i t e '
g r i d v i e w . c r e a t e r e c t a n g l e ( r o w * c e l l s i z e ,
c o l * c e l l s i z e ,
r o w * c e l l s i z e + c e l l s i z e ,
c o l * c e l l s i z e + c e l l s i z e ,
f i l l = c o l o r , o u t l i n e = o u t l i n e )
c o m pl et a n d o a f u n ç ã o u p d at e
d e f u p d a t e ( ):
g l o