Exemplo n.º 1
0
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_())
Exemplo n.º 2
0
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_())
Exemplo n.º 3
0
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_())