Pygame Grid and Entry, Correct Alignment : [What I want][1]


  [1]: https://i.stack.imgur.com/xneY2.png

How would I implement this in TkInter with Python? 

Two numbers are input as the width and height, and are then saved to Mapwidth and Mapheight respectively. When the Confirm button is hit, the window closes.