-----Original Message-----
From: Hon Shi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 8:35 AM
To: [EMAIL PROTECTED]
Subject: tk - mainloop - a print to stdout method?

I'm trying to view values in a AD browser that I found.
I don't know tk but I assume MainLoop is it's processing 
'loop'.  How can I place print statements in his code
to print to stdout?  Does tk have a print method that 
prints to it?  My prints don't do a things.
Printing works in 'new' within ADSIBrowser.  It begin to 
fail at mainloop. 
Thanks


#-------------------------- main
use Tk;
use ADSIBrowser;
print qq/HFS: BUG: browse.pl\n/;

ADSIBrowser->new_adspath($ARGV[0]?$ARGV[0]:"ADs://", 1);

&MainLoop;


Sorry I don't know what an "AD" browser is ... but from the dos prompt...

I'm not sure what you want to do but I don't think you want to put print
statements in "mainloop" ... it's not anything that you can really access.
"mainloop" is the "driver" to the Tk objects and events you create. You can
put print statements in the events and they will display at the window you
invoked the script in - "stdout"  - I do this to watch values or see what
event is called... or you could redirect stdout & stderr to files ... 

Hope this gives you some ideas...

jwm

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to