Beispiel #1
0
    def __init__(self, parent=None):
        super(NodeViewer, self).__init__(parent)

        self.layout = QtGui.QVBoxLayout()
        self.setLayout(self.layout)
        self.attrLayout = QtGui.QHBoxLayout()

        self.setWindowFlags(QtCore.Qt.CustomizeWindowHint
                            | QtCore.Qt.WindowTitleHint
                            | QtCore.Qt.WindowMaximizeButtonHint
                            | QtCore.Qt.WindowCloseButtonHint)

        icon = QtGui.QLabel()
        icon.setMaximumSize(1000, 100)
        iconspath = os.path.join(os.path.dirname(__file__), "icons",
                                 "jigsaw.png")
        if not os.path.exists(iconspath):
            log.warning("icon %s doesnt' exists" % iconspath)

        icon.setPixmap(QtGui.QPixmap(iconspath))
        self.layout.addWidget(icon)
Beispiel #2
0
    def __init__(self, parent=None):
        super(NodeViewer, self).__init__(parent)

        self.layout = QtGui.QVBoxLayout()
        self.setLayout(self.layout)
        self.attrLayout = QtGui.QHBoxLayout()

        self.setWindowFlags(
            QtCore.Qt.CustomizeWindowHint
            | QtCore.Qt.WindowTitleHint
            | QtCore.Qt.WindowMaximizeButtonHint
            | QtCore.Qt.WindowCloseButtonHint
        )

        icon = QtGui.QLabel()
        icon.setMaximumSize(1000, 100)
        iconspath = os.path.join(os.path.dirname(__file__), "icons", "jigsaw.png")
        if not os.path.exists(iconspath):
            log.warning("icon %s doesnt' exists" % iconspath)

        icon.setPixmap(QtGui.QPixmap(iconspath))
        self.layout.addWidget(icon)
Beispiel #3
0
 def print2(self):
     log.debug("running print 2")
     log.warning("warning mode")
Beispiel #4
0
 def print2(self):
     log.debug("running print 2")
     log.warning("warning mode")