code: def setBrush(self, b, resize=0, proportional=None):
  		
  		if proportional!=None:
  			resize = int(self.brush.brushSize*0.5)
  		b.resizeBrush(resize) #If resize=0 it reset to its default size
  		self.brush = b
  		if self.brush and self.brush.doesUseSourceCaching():
  			self.brush.cacheBrush(self.color)
docs: Sets the size of the current :py:class:`Brush`.
  		
  		:param brush: The :py:class:`Brush` object to use as a brush.
  		:param resize: An optional absolute value to resize the brush before using it.
  		:param proportional: An optional relative float 0-1 value to resize the brush before using it.
  		:rtype: Nothing.