Re: logging to another window

Bartek Krzeszewski <bkrzeszewski-EDYeUJD08VlmR6Xm/[email protected]> Sun, 3 Oct 2004 15:55:22 +0200
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
> I'm wondering if anyone has implemented a system where information from 
> the main tk session is logged to other windows.  I'd love to be able to 
> do this, but I'm not sure where to start.

If u use tkui try with NamedWindow class whitch is in tkui.py

exemple:

from lyntin.ui import tkui

temp = "some text"
windowname = "new"

if not tkui.myui._windows.has_key(windowname):
  tkui.myui._windows[windowname] = tkui.NamedWindow(windowname, "", "")
tkui.myui._windows[windowname].write(temp)


This will open new window and display "some text". U can write to this window with tkui.myui._windows[windowname].write("your text")




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl