def OnGoToCentre(self, evt: wx.CommandEvent) -> None: centre = (stageMover.mover.SavedBottom + ( (stageMover.mover.SavedTop - stageMover.mover.SavedBottom) / 2.0)) stageMover.moveZCheckMoverLimits(centre)
def OnGoToBottom(self, evt: wx.CommandEvent) -> None: stageMover.moveZCheckMoverLimits(stageMover.mover.SavedBottom)