def disconnect(self): """ Disconnect the tool from everything """ QObject.disconnect(self) for cid in self._cids: self.canvas.mpl_disconnect(cid) self.fit_range.remove()
def disconnect(self): """ Disconnect the tool from everything """ QObject.disconnect(self) for cid in self._cids: self.canvas.mpl_disconnect(cid) self.fit_start_x.remove() self.fit_end_x.remove()