Mar-26-2017, 07:05 AM
Hi metulburr.
Thanks for the quick reply. Your solution is not quite what I want. I have been "programming" in python for quite a few years as a means of solving some cryptographic puzzles, but without using classes. I just use python as a type of programmable calculator to manipulate text to find solutions to problems. Now I have retired I thought I would try to make my programs look a bit smarter. Some of the programs I write take days to execute, and I have been using print to show me that the program is still running and to give me an idea of how far it has progressed. I was trying to use tkinter to display the results on screen every time that a particular variable changed without me having to press the "start" button each time. The example I posted was just a simple program that I hoped would show me the count updating in the Entry box each time it changed, as it does on the console if I put a "print(n)" statement in the loop.
Thanks for the quick reply. Your solution is not quite what I want. I have been "programming" in python for quite a few years as a means of solving some cryptographic puzzles, but without using classes. I just use python as a type of programmable calculator to manipulate text to find solutions to problems. Now I have retired I thought I would try to make my programs look a bit smarter. Some of the programs I write take days to execute, and I have been using print to show me that the program is still running and to give me an idea of how far it has progressed. I was trying to use tkinter to display the results on screen every time that a particular variable changed without me having to press the "start" button each time. The example I posted was just a simple program that I hoped would show me the count updating in the Entry box each time it changed, as it does on the console if I put a "print(n)" statement in the loop.