How do you do this in python with tk?

Ali alikakakhel3 at hotmail.com
Fri Oct 8 12:49:19 EDT 2004


Jeremy Bowers <jerf at jerf.org> wrote in message news:<pan.2004.10.07.19.38.16.805089 at jerf.org>...
> On Thu, 07 Oct 2004 15:31:19 -0700, Ali wrote:
> 
> > I have a the list:
> > 
> > info = [['Ali',18],
> >         ['Zainab',16],
> >         ['Khalid',18]]
> > 
> > I want this info to show on a tk window like this:
> > 
> > |--|------------------------|
> > |TK|Blah                    |
> > |--|------------------------|
> > |Name: Ali                  |
> > |Age:  18                   |
> > |                           |
> > |Name: Zainab               |
> > |Age:  16                   |
> > |                           |
> > |Name: Khalid               |
> > |Age:  18                   |
> > |---------------------------|
> > 
> > I was wondering how to do this?
> 
> http://www.pythonware.com/library/tkinter/introduction/grid.htm
> 
> Do you even try to figure these things out before posting?

Yes.



More information about the Python-list mailing list