- canvas.blit(image, source=((sourceLocX, self.sourceLocY),
-
(sourceLocX+ canvas.size[0],
-
sourceLocY+self.canvas.size[1])))
Simply based on the code you've posted here I'd say:
-
canvas.blit(image, source = ( ( self.sourceLocX, self.sourceLocY ), \
-
( self.sourceLocX + self.canvas.size[0], \
-
self.sourceLocY + self.canvas.size[1] ) ) )
The thing you want to make sure you keep track of is the self. notation. This allows you to access members of self . So depending on which of the elements (sourceLoc*, canvas, etc.) are members of self, they should always be prepended with self.
What error codes are you getting? Or is simply nothing happening?