Tk question about fonts & colors

B Razen <odbrazen-/[email protected]>
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
I have a command that creates a new scrolled text window with a copy of all the output
so I can read help or just check something that happened recently without worrying about
scroll.  But it is ugly as sin, it doesn't use the same font or any of the coloration.

Here is my command, what do I need to do to make it purty like the regular lyntin
scroll text window?

  text = ui.tkui.get_ui_instance()._txt.get("1.0", "end")
  title = 'What just happened?'

  win = Tk()

  fnt = tkFont.Font(family="Courier", size=12) # I copied this from tkui.py
  
  scroll = ScrolledText(win, fg='white', bg='black', font=fnt, height=20)
  scroll.pack(side=BOTTOM, fill=BOTH, expand=1)
  scroll.insert('end', text)
  Button(win, text='OK', command=win.destroy).pack(side=BOTTOM)
  win.title(title)

TIA,
Razen

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.