How can i create slider in canvas by python?

Is possible to create one slider by python?

Could you share with me what would be the code?

Thank you

Look here:

Not a slider but maybe just as good

If you want sliders, check this topic: