YA-Newbie: Progress (but still baffled by deepcopy/pickle issues...:)
Greg Ewing
greg.ewing at compaq.com
Fri Oct 1 00:08:27 EDT 1999
Fred Pacquier wrote:
> # in Card __init__:
> if ... : self.src = 0 # store an index instead of bitmap ref.
> else : self.src = 1
> # in Stack showrow():
> srcDC.SelectObject(CardFaces[self.Cards[row].src])
> This seems to work flawlessly, although I don't understand why.
Sounds like when you use references to the bitmaps, deepcopy is
trying to copy the bitmap objects and screwing up somehow.
Greg
More information about the Python-list
mailing list