Creating a NUMPAD

Hi,
i want to create a numpad ,which could take these numbers as inputs and also print them as they are typed ..

I need to do this using tcl/tk on unix machine ...

Can anyone plz help me with that ...

Thanks,

Is there anyone who can guide/help me with this.....
i would really appreciate that