Why do I get a segmentation fault while redirecting sys.stdout to Tkinter.Text widget in Python?
- by Brent Nash
I'm in the process of building a GUI-based application with Python/Tkinter that builds on top of the existing Python bdb module. In this application, I want to silence all stdout/stderr from the console and redirect it to my GUI. To accomplish this purpose, I've written a specialized Tkinter.Text object (code at the end of the post).
The basic…