berto
>From: "Alan G" <[EMAIL PROTECTED]>
>To: "Alberto Troiano" <[EMAIL PROTECTED]>,
>Subject: Re: [Tutor] Minesweeper implementing 20%,weird problem with
>matrixes
>Date: Thu, 14 Jul 2005 01:12:18 +0100
>
> > I initialize them by putting
> I initialize them by putting None along all the fields
Actually you don't.
def initialize(self):
self.buttonmatrix=[]
self.statematrix=[]
self.bombmatrix=[]
3 empty lists, so far so good.
for i in range(self.fil):
aux=[]
for j in ra
Hi Alberto,
The issue you're seeing is in the intialize() code:
##
def initialize(self):
self.buttonmatrix=[]
self.statematrix=[]
self.bombmatrix=[]
for i in range(self.fil):
aux=[]
for j in range(self.col):
aux.app
> Does this make sense so far? Please feel free to ask more questions.
I forgot to mention that you might want to look at:
http://www.python.org/doc/faq/programming.html#how-do-i-create-a-multidimensional-list
since it's relevant to the code that you're writing. Best of wishes to
you!
___
Hey tutors
I think I got this a little, but I have a very weird problem
This is the code I'm using:
##
class buscaminas(object):
def __init__(self):
self.col=0
self.marcas=Tkinter.BooleanVar()
self.color=Tkinter.BooleanVar()
self.sonido=T