467,912 Members | 1,645 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,912 developers. It's quick & easy.

Trouble with Tkinter text margins

I am writing a program in which there is a textbox and in it the program auto
inputs a series of words, and definitions for each word. I want to make it
formatted nicely to where the word is indented, and the definitions indented
even more. I don't even know how to make the margins work. I have read all
the documentation but just need an example so that will help. But my bigger
issue is that the way I have written it is like this:

for entry in WordList:
the definions go in.

While that is very dumbed down, that is the gist. Meaning the words to be
defined are in "wordlist" and for each entry it prints the entry and the
definition. My problem is that I want the lmargin1 to be indented a little,
and that will be the margin where the words are, and lmargin2 to be indented
even further, and that will be where the definitions go. I want it to look
like this:


and so on. So I need some help trying to figure out how to make this work
with the for loop.
View this message in context: http://www.nabble.com/Trouble-with-T...p18325944.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Jul 7 '08 #1
  • viewed: 757

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rick Olson | last post: by
8 posts views Thread by VK | last post: by
2 posts views Thread by Grooooops | last post: by
8 posts views Thread by Dustan | last post: by
1 post views Thread by Michael Yanowitz | last post: by
3 posts views Thread by dwelch91 | last post: by
reply views Thread by Alex Bryan | last post: by
3 posts views Thread by joshdw4 | last post: by
3 posts views Thread by J-Burns | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.