Sliders to rotate empties?

I am looking for some code examples of how I would use a slider to rotate an empty.

I would like to use an action constraint to control various poses in an armature that can be controlled via sliders.

Can anyone point me in the right direction

Thanks

Cheers