Hi
I am trying to use the gdk input_add function to check a log file when
it grow, but when i use the following code, the function lectura is
called all the time, but the file don`t change its size :-?
Some suggestion about what is happening???
def lectura(fich,dos):
lstLineas = fich.readlines()
time.sleep(5)
print lstLineas
def main():
gtkWindowMain = GtkWindow(type='toplevel')
gtkText = GtkText()
gtkWindowMain.add(gtkText)
fich = open('menu.txt','r')
input_add(fich,INPUT_READ,lectura)
gtkWindowMain.show_all()
mainloop()
Thanks in adavance
--
Hasta otra!
Eduardo Ferro Aldama [EMAIL PROTECTED]
(Linux User 58390-44335)
La web del GLUB http://glub.ehu.es/
Grupo Linux Usuarios de Bizkaia
Windows: From the people who brought you EDLIN!
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk