How to use grid_location (Tkinter)

Carles Sadurní Anguita isard at localhost.localdomain
Fri Aug 25 07:37:52 EDT 2000


El Thu, 24 Aug 2000 17:32:54 GMT, John Grayson va escriure:
>In article <slrn8qabvp.16u.isard at localhost.localdomain>,
>  sadurni_mira_la_firma at jazzfree.com wrote:
>> Hello,
>>
>> I would like to divide a window in a 3x3 grid of labels and then know
>>in which cell did the user click (for instance (2,1)).
>>
>> I've read Fredrik Lundh's Tkinter Introduction, Tk man pages, chapter
>>5 from John Grayson's book, some exemples and so, but I can't figure out
>>how to use grid_location (if it's the method I should use).


>--snip--
>
>Try this:

Thanks, it works! 


-- 
------------------------------------------------------------------------
Carles Sadurní Anguita    |   no había que cumplir promesas,
                          |   el cansancio era de placer,
Quita _mira_la_firma para |   las lágrimas eran de risas...
responder.                |   y parece que aún fue ayer.
                          |           Los Suaves
------------------------------------------------------------------------



More information about the Python-list mailing list