def __init__(self):
super(LocoWidget,self).__init__()
self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
self.setWindowTitle('Locometry v2.1')
self.header = QtGui.QPixmap(os.path.split(__file__)[0]+'/icons/logo.png')
self.headerLBL = QtGui.QLabel()
self.headerLBL.setPixmap(self.header)
self.vLayout = QtGui.QVBoxLayout()
self.vLayout.addWidget(self.headerLBL)
self.typeCombo = QtGui.QComboBox()
self.typeCombo.addItems(['Axis','Card','Sphere','Cube','Cylinder','Selected Node'])
self.frangeLBL = QtGui.QLabel('Frame Range')
self.firstLE = QtGui.QLineEdit()
self.lastLE = QtGui.QLineEdit()
self.trackBTN = QtGui.QPushButton('snap')
self.locoDic = {}
self.progressBar = QtGui.QProgressBar()
self.progressBar.setMinimum(1)
self.progressBar.setMaximum(100)
self.progressBar.setFormat('Snapping '+self.typeCombo.currentText())
self.progressBar.setObjectName("progressBar")
self.layout = QtGui.QHBoxLayout()
self.layout.addWidget(self.typeCombo)
self.layout.addWidget(self.frangeLBL)
self.layout.addWidget(self.firstLE)
self.layout.addWidget(self.lastLE)
self.layout.addWidget(self.trackBTN)
self.vLayout.addLayout(self.layout)
self.vLayout.addWidget(self.progressBar)
self.progressBar.hide()
self.setLayout(self.vLayout)
self.locoThread = None
self.trackBTN.clicked.connect(self.trackSelectedVertices)
评论列表
文章目录