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()
def __init__(self): log.debug("running init") for i in range(10): log.info("info mode")