[Tutor] Tkinter layout question

Alan Gauld alan.gauld at yahoo.co.uk
Mon Apr 24 15:10:30 EDT 2017


On 24/04/17 20:02, Alan Gauld via Tutor wrote:

> And you could wrap that up as a pair of get/set
> functions if you so wished.
>
> def get_sudoku_grid(x,y):
>    # code above
>    return item
>
> def set_sudoku_grid(x,y,value):
>     #code above
>     item = value
>

I should point out that to use my table code for your sudoku you need to
- remove the headings
- change the Labels to Entry widgets
- write get/set methods to access the entry data

Alan G



More information about the Tutor mailing list