Attached is a python file that will run by itself.
It takes a number entered into an entry box
converts it to text and the written form of the
It also checks for out of rainge errors and
incorrect data entered into the entry box, then
shows the output in a info box.
Using this file you should be able to figure out
how to produce what you want.
print out the Tkinter manual, its all there.