Your question is a bit broad, You should look up some tutorials on you tube and read the documentation about making widgets.