How can i make 'redo' & 'undo'?

Operating system: window 10
Slicer version: 5.2.1

Hi, slicer users

I want to make redo & undo functions related to location movement in fiducialnode in 3d slicer.
Is there any example or code I can refer to?

Your previous post has the how-to for undo/redo for markups fiducial nodes. If something is still not working for you I recommend that you continue the discussion over there with what you tried and what you expected to happen.