def __init__(self, tkRoot, height=800, width=1200, boxBasePx=32):
    self.canvas_image = None
    self.canvasHeight = height
    self.canvasWidth = width
    self.rectangle = None
    self.box = [0, 0, 0, 0]
    self.boxBasePx = boxBasePx
    self.img = None
    self.resized_img = None
    self.movingCrop = False
    self.lastLocation = [0, 0]
    self.scale = 1
    self.currImage = None
    self.canvas = tkinter.Canvas(tkRoot, highlightthickness=0, bd=0)
    tkRoot.bind('<Button-1>', self._on_mouse_down)
    tkRoot.bind('<ButtonRelease-1>', self._on_mouse_release)
    tkRoot.bind('<B1-Motion>', self._on_mouse_move)
def __init__(self, tkRoot, height=800, width=1200, boxBasePx=32):
    self.canvas_image = None
    self.canvasHeight = height
    self.canvasWidth = width
    self.rectangle = None
    self.box = [0, 0, 0, 0]
    self.boxBasePx = boxBasePx
    self.img = None
    self.resized_img = None
    self.movingCrop = False
    self.lastLocation = [0, 0]
    self.scale = 1
    self.currImage = None
    self.canvas = tkinter.Canvas(tkRoot, highlightthickness=0, bd=0)
    tkRoot.bind('<Button-1>', self._on_mouse_down)
    tkRoot.bind('<ButtonRelease-1>', self._on_mouse_release)
    tkRoot.bind('<B1-Motion>', self._on_mouse_move)