def main(): """Main function.""" # Create an instance of QApplication pycalc = QApplication(sys.argv) # Show the calculator's GUI view = GUI() view.show() sys.exit(pycalc.exec_())
def main(): """Main function.""" # Create an instance of QApplication pycalc = QApplication(sys.argv) # Show the calculator's GUI view = GUI() view.show() model = evaluateExpression Controller(model=model, view=view) sys.exit(pycalc.exec_())
def main(): """Main function.""" # Create an instance of QApplication pycalc = QApplication(sys.argv) # Show the calculator's GUI view = GUI() view.show() # Create instances of the model and the controller Model = evaluateExpression Controller(model=Model, view=view) # Execute the calculator's main loop sys.exit(pycalc.exec_())