[Tutor] Question related to Tkinker
Emeka
emekamicro at gmail.com
Sun Jul 24 09:17:26 CEST 2011
for i,cha in enumerate(wordi):
label = Label(root, image=photoimage, text = cha)
label.grid(row=1, column=i, columnspan=1, rowspan=1,sticky=W+E+N+S,
padx=0, pady=1)
label1 = Label(root, image=IMAGE)
I used grid ... Though I used labels, I was dealing only on character level.
So for word like "JAVA" . I will have a row with four cells and each filled
with the individual character so that I could manipulate them individually.
Now, if I late have "ORACLE" in level 2.. I would want to use to write it in
the same row as above however with six cells.
I will check the link you posted
On Sun, Jul 24, 2011 at 8:00 AM, Corey Richardson <kb1pkl at aim.com> wrote:
> Excerpts from Emeka's message of Sun Jul 24 02:56:02 -0400 2011:
> > Hello All,
> >
> > I am putting up a simple game .. the game is about manipulation. If the
> gets
> > through level one ... I have to change the word with another...
> >
> > Am I going to destroy level window and build level 2 or is there a way to
> > just adjust the word (I used labels)
> >
>
> When working with tkinter, http://effbot.org/tkinterbook/ will likely be
> your
> best friend. Specifically, you're going to want
>
> your_label1.config(text="New word!")
> your_label2.config(text="Another!")
> --
> Corey Richardson
> "Those who deny freedom to others, deserve it not for themselves"
> -- Abraham Lincoln
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
*Satajanus Nig. Ltd
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110724/c9d2c10a/attachment-0001.html>
More information about the Tutor
mailing list