#!/usr/bin/env python

__version__ = "0.0.4"


import sys
from PyQt5.QtWidgets import QApplication, QWidget
from .gui.MainWindow import MainWindow


def main():
    app = QApplication(sys.argv)
    app.setApplicationDisplayName("EvoBridge")

    args = app.arguments()

    window = MainWindow(args[1] if len(args) == 2 else None)
    app.installEventFilter(window)
    window.resize(800, 600)
    window.show()

    sys.exit(app.exec_())


if __name__ == "__main__":
    main()
