Exemplo n.º 1
0
    def __init__(self, parent):
        super(QMdiParameterBoxSubWindow, self).__init__(parent)
        self.setWindowTitle('Untitled3')
        self.setWindowIcon(QtGui.QIcon('LayoutCreator.ico'))
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)

        self.resize(500, 300)
        widget = QtGui.QWidget()
        self.subwin_abq = Ui_QTParamBox()
        self.subwin_abq.setupUi(widget)
        widget.setParent(self)
        self.setWidget(widget)
        parent.addSubWindow(self)
        self.widget = widget
        self.show()
        self.subwin_abq.itemChanged.connect(self.itemChanged.emit)
Exemplo n.º 2
0
    def __init__(self, parent):
        super(QMdiParameterBoxSubWindow,self).__init__(parent)
        self.setWindowTitle( 'Untitled3' )
        self.setWindowIcon(QtGui.QIcon('LayoutCreator.ico'))
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)

        self.resize(500, 300)
        widget = QtGui.QWidget()
        self.subwin_abq = Ui_QTParamBox()
        self.subwin_abq.setupUi(widget)
        widget.setParent(self)
        self.setWidget(widget)
        parent.addSubWindow(self)
        self.widget = widget
        self.show()
        self.subwin_abq.itemChanged.connect( self.itemChanged.emit  )        
Exemplo n.º 3
0
class QMdiParameterBoxSubWindow(QtGui.QMdiSubWindow):

    itemChanged = QtCore.pyqtSignal(object)

    def __init__(self, parent):
        super(QMdiParameterBoxSubWindow,self).__init__(parent)
        self.setWindowTitle( 'Untitled3' )
        self.setWindowIcon(QtGui.QIcon('LayoutCreator.ico'))
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)

        self.resize(500, 300)
        widget = QtGui.QWidget()
        self.subwin_abq = Ui_QTParamBox()
        self.subwin_abq.setupUi(widget)
        widget.setParent(self)
        self.setWidget(widget)
        parent.addSubWindow(self)
        self.widget = widget
        self.show()
        self.subwin_abq.itemChanged.connect( self.itemChanged.emit  )        

    def addEmptyRow(self):
        self.subwin_abq.addEmptyRow()

    def delRow(self):
        self.subwin_abq.delRow()

    def setData(self, data):
        self.subwin_abq.setData(data)

    def setValue(self, key, value):
        self.subwin_abq.setValue(key, value)

    def setRow(self, i, key, row):
        self.subwin_abq.setRow(i, key, row)
        
    def data(self):
        return self.subwin_abq.data()
        
    def iteritems(self):
        for key, min, value, max in self.subwin_abq.data():
            yield key, value
    
    def headerData(self):
        return self.subwin_abq.headerData()
        
    def setFilename(self, filename):
        self.__filename__ = str(filename)
        self.setWindowTitle( filename.split('/')[-1].split('\\')[-1] + ' - ' + filename )
        
    def filename(self):
        return self.__filename__
Exemplo n.º 4
0
class QMdiParameterBoxSubWindow(QtGui.QMdiSubWindow):

    itemChanged = QtCore.pyqtSignal(object)

    def __init__(self, parent):
        super(QMdiParameterBoxSubWindow, self).__init__(parent)
        self.setWindowTitle('Untitled3')
        self.setWindowIcon(QtGui.QIcon('LayoutCreator.ico'))
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)

        self.resize(500, 300)
        widget = QtGui.QWidget()
        self.subwin_abq = Ui_QTParamBox()
        self.subwin_abq.setupUi(widget)
        widget.setParent(self)
        self.setWidget(widget)
        parent.addSubWindow(self)
        self.widget = widget
        self.show()
        self.subwin_abq.itemChanged.connect(self.itemChanged.emit)

    def addEmptyRow(self):
        self.subwin_abq.addEmptyRow()

    def delRow(self):
        self.subwin_abq.delRow()

    def setData(self, data):
        self.subwin_abq.setData(data)

    def setValue(self, key, value):
        self.subwin_abq.setValue(key, value)

    def setRow(self, i, key, row):
        self.subwin_abq.setRow(i, key, row)

    def data(self):
        return self.subwin_abq.data()

    def iteritems(self):
        for key, min, value, max in self.subwin_abq.data():
            yield key, value

    def headerData(self):
        return self.subwin_abq.headerData()

    def setFilename(self, filename):
        self.__filename__ = str(filename)
        self.setWindowTitle(
            filename.split('/')[-1].split('\\')[-1] + ' - ' + filename)

    def filename(self):
        return self.__filename__