Shortened __init__ function for MainWindow.