I'm trying to display the output of an external process (invoked via
popen) in a Tkinter text widget. I successfully start the process (based
on what I'm seeing in my terminal output), but I can't get the output to
display in the Tkinter widget. It seems to block.

Any ideas? My code is below:

    def runDump(self):

        self.password.destroy()

        self.passtext = self.passtext.get()

        file = os.popen('echo %s | sudo -S /usr/sbin/tcpdump  -v  -i
en1' % self.passtext, 'r')

        for line in file:
            self.t.insert(END, line)

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to