How to use the discopy.DiscoPy function in discopy

To help you get started, we’ve selected a few discopy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fbngrm / DiscoPy / discopy.py View on Github external
settingsHandler = SettingsHandler()
    settingsHandler.setup()
    setup_logging()

    app = QtGui.QApplication(sys.argv)
    iconpath = resource_path(os.path.join(ICN_DIR, 'discopy.ico'))

    start = time()
    splashpath = resource_path(os.path.join(ICN_DIR, SPLSH_SCRN))
    splash = QtGui.QSplashScreen(QtGui.QPixmap(splashpath))
    splash.show()
    while time() - start < 2:
        sleep(0.001)
        app.processEvents()

    win = DiscoPy(
        Ui_MainWindow(),
        settingsHandler,
        Client('discopy/0.1',
        CONSUMER_KEY, CONSUMER_SECRET,
        TOKEN, SECRET),
        NameBuilder(),
        TagData,
        ImageHandler())

    win.setWindowIcon(QtGui.QIcon(iconpath))
    win.set_rename_dialog(RenameDialog(settingsHandler, win))
    splash.finish(win)

    # import ctypes
    # appid = 'discopy.0.1'
    # ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(appid)

discopy

The Python toolkit for computing with string diagrams.

BSD-3-Clause
Latest version published 9 months ago

Package Health Score

67 / 100
Full package analysis

Popular discopy functions

Similar packages