RDS wrote:my program is listed in one window and when it runs, it opens up another window into which I write information from my sensor. At the moment it just prints out a long list of data and on a good sunny day, this can be up to 30,000 lines long. I would like to be able to write some summary information throughout the day but at the moment this just gets lost in the middle of a long list.
Is it possible to open up another window, write some information and then revert back and forth between the new window and my initial window.
As well as, or instead of, writing the data to the standard output channel for the program - which as you have seen is directed back to the screen you are running from - you might consider writing summary information to a 'logging' file. You could then open up another terminal window and monitor what is happening to that file: tail -f
is useful for that.
Be aware that IDLE is itself a graphical program written in python. Attempting to run python code that itself generates graphical output from with IDLE can give confusing/frustrating results. Probably better to develop within IDLE if you wish, but test independently from the command line.