Hello pygtk'rs,
I am trying to write a front end to the NuppleVideo player. There is a
small app that is included with the Nupple source and it is written in
tcl. The app is very simple and it was quick progress to convert it to
pygtk except for this little part. In tcl they have a command
'fileevent' which can register a callback for when a file has data to
read.
In my pygtk code I start with something like this
class CtlWin(window1Widget):
def __init__(self):
window1Widget.__init__(self)
self.movWin = os.popen3("nuvplay -Z test255.nuv", "rw")
self.outFile = self.movWin[0]
self.inFile = self.movWin[1]
self.errFile = self.movWin[2]
def on_play_button_clicked(self, widget):
self.outFile.write("1 -1\n")
self.outFile.flush()
The problem is I need to recieve feedback from self.inFile. As the movie
plays it writes the current frame number it is on to stdout. In the tcl
code they register a callback using the fileevent command. This trigers
an event for every frame played, the tcl player can then keep track of
the progress of the movie.
I am stuck. I cant think of how to do this since I am inside the pygtk
mainloop.
I hope this is clear enough to explain the issue. Thanks for any help.
Phil
.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk