Adding a input dialog to a script

Is it possible to add a user input ui to a python script? something simple like int number input and run button.

You could run something like PySide, Stumbling Toward 'Awesomeness'Creating a Volume Slider in UE4 with Python - Stumbling Toward 'Awesomeness' This site had some great examples.