This is not a PyGtk related question, but anyway.

Il giorno mer, 26/10/2011 alle 00.42 +0100, ravi ravi ha scritto:
> Hello all,
> 
> I am using python and pygtk to create a GUI. I am storing all the
> values that are to be displayed, in a list.
> --> The values are calculated and stored in a list in the first file
> --> The list is imported in to the second file which is GUI
> file(contains gtk.main()) by using IMPORT statement.
> 
> problem:
> 
> The list is continuously appended in the first file, but this does not
> reflect when imported in to the second file. The second file only
> shows an empty list. I need to get an updated list in my GUI
> file.Please help me out
> 


Just store the list elsewhere. A python script is not the right place to
store data, even less if it is changing.

A good approach would be to use a generic file, with one (list) item per
line, and using glib.io_add_watch to trigger a read().

Pietro

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to