[Tutor] Tkinter layout question

Phil phil_lor at bigpond.com
Sun Apr 23 19:24:55 EDT 2017


On Sun, 23 Apr 2017 09:39:54 +0200
Sibylle Koczian <nulla.epistola at web.de> wrote:

> Am 20.04.2017 um 14:43 schrieb Alan Gauld via Tutor:
> > Its not too bad you can map the large 9x9 table to the smaller units
> > using divmod()
> >
> > So the 7th element becomes
> > divmod(7) -> 2,1
> >
> 
> Should be divmod(7, 3), shouldn't it?

Thanks Sibylle, I eventually stumbled upon the answer using my usual trial-and-error method. The 3, as in the number of cells, was the key.

-- 
Regards,
Phil


More information about the Tutor mailing list