need to replace the line 520: widget.root.bind('<3>', self.popup) with widget.bind('<3>', self.popup)