Exemple #1
0
    def add_graph(self, G):
        vsplitter = QtGui.QSplitter(self)
        vsplitter.setOrientation(QtCore.Qt.Horizontal)

        hlayout = QtGui.QHBoxLayout()
        self.layout.addLayout(hlayout)
        self.view = nd.JigsawView(Graph=G, parent=self)
        hlayout.addWidget(vsplitter)
        vsplitter.addWidget(self.view)
        vsplitter.addWidget(AttributesWidget())


def main():
    app = QtGui.QApplication(sys.argv)
    splash_image = QtGui.QPixmap("splash.jpg")
    splash = QtGui.QSplashScreen(splash_image)
    splash.show()
    app.processEvents()

    dialog = NodeViewer()
    G = DRAW_GRAPH()
    dialog.add_graph(G)
    dialog.show()
    sys.exit(app.exec_())


if __name__ == "__main__":
    log.info("starting jigsaw test")
    main()
Exemple #2
0
    def add_graph(self, G):
        vsplitter = QtGui.QSplitter(self)
        vsplitter.setOrientation(QtCore.Qt.Horizontal)

        hlayout = QtGui.QHBoxLayout()
        self.layout.addLayout(hlayout)
        self.view = nd.JigsawView(Graph=G, parent=self)
        hlayout.addWidget(vsplitter)
        vsplitter.addWidget(self.view)
        vsplitter.addWidget(AttributesWidget())


def main():
    app = QtGui.QApplication(sys.argv)
    splash_image = QtGui.QPixmap("splash.jpg")
    splash = QtGui.QSplashScreen(splash_image)
    splash.show()
    app.processEvents()

    dialog = NodeViewer()
    G = DRAW_GRAPH()
    dialog.add_graph(G)
    dialog.show()
    sys.exit(app.exec_())


if __name__ == "__main__":
    log.info("starting jigsaw test")
    main()
Exemple #3
0
 def __init__(self):
     log.debug("running init")
     for i in range(10):
         log.info("info mode")
Exemple #4
0
 def __init__(self):
     log.debug("running init")
     for i in range(10):
         log.info("info mode")