If anyone is very familiar with Tk I would be very grateful for a few
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
I envision the calling the class like this:
@output = GraphicalOutput.new @output.message("Now moving files....")
to replace the current:
p “Now moving files…”
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’=>…) 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.
Am I using the wrong approach and/or mentality for this problem?!
Again I will be very grateful for anyone’s help! Thanks in advance!!!
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.