From: "Cameron, Gemma (UK)" Date: 2006-09-27T17:26:53+09:00 Subject: Feedback messages to user using Tk... ------_=_NextPart_001_01C6E20E.AC58A0FB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all! =0D If anyone is very familiar with Tk I would be very grateful for a few= pointers. =0D Basically I'm looking to feedback my program's output to the user in a GUI= (Tk Label) rather than printing to the console (which it currently does).= This information would simply be a string to let the user know what's= going on and maybe even what percentage of the work has been done. I don't= want a command/bound event to drive this - I simply want to send a message= to a method which will update the Tk Label dynamically. =0D I envision the calling the class like this: =0D @output =3D GraphicalOutput.new @output.message("Now moving files....") =0D to replace the current: p "Now moving files..." =0D Is this possible with Tk? I've been looking for days now and haven't found= much. I know how to use the TkLabel.configure('text'=3D>..) etc. to update= the text, however just calling this when the mainloop is running does not= seem to dynamically update the label. I've even got the stopwatch example= going from the O'Reilly cookbook. =0D Am I using the wrong approach and/or mentality for this problem?!=0D =0D Again I will be very grateful for anyone's help! Thanks in advance!!! =0D Gemma =0D ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** ------_=_NextPart_001_01C6E20E.AC58A0FB--