Refactoring 

I refactored MainWindow class for a better overview and reading.
Are you sure that set_font and set_output should be put into __init__ function? 
What if I want to call mainwindow.set_font from elsewhere ?