display scrolling data to in wxPanel (to show ageing)

Using ubuntu 12.10 and Python 2.7. Currently I have a wxPython panel that watches a thread for data and
displays the data when its received. The data is displayed in static
fields. I also have the data being logged to text file with the user
able to control where its saved via buttons on the panel.

Now my idea is to take the same data
that is being logged, and display it in the panel. Scrolling from
top to bottom to show ‘ageing’ to the user. What would be the way to
do this? Is there a kind of larger textcntl, that can be used sort
of like a terminal window to print stuff to?

Hi,

···

On Wednesday, July 31, 2013 7:49:07 PM UTC-5, matt d wrote:

Using ubuntu 12.10 and Python 2.7. Currently I have a wxPython panel that watches a thread for data and
displays the data when its received. The data is displayed in static
fields. I also have the data being logged to text file with the user
able to control where its saved via buttons on the panel.

Now my idea is to take the same data
that is being logged, and display it in the panel. Scrolling from
top to bottom to show ‘ageing’ to the user. What would be the way to
do this? Is there a kind of larger textcntl, that can be used sort
of like a terminal window to print stuff to?

I just redirect stdout to a multiline text control. I wrote about this a while ago here:

If you’re using the logging module, you can tell it to log BOTH to a file and to stdout by adding a second handler to it. I wrote about that too: Python Logging: How to Log to Multiple Locations - Mouse Vs Python

So you could combine the information in those two articles to get what you want.

  • Mike