def enterEvent(self, event): """ When the mouse enters the dialog, let the world know which dagNode you are referring to by emitting a mouseover signal. """ idString = self.input.value connectedDagNode = self.dag.node(nUUID=depends_data_packet.uuidFromScenegraphLocationString(idString)) if (connectedDagNode): self.mouseover.emit([connectedDagNode]) QtGui.QWidget.enterEvent(self, event)
def enterEvent(self, event): """ When the mouse enters the dialog, let the world know which dagNode you are referring to by emitting a mouseover signal. """ idString = self.input.value connectedDagNode = self.dag.node( nUUID=depends_data_packet.uuidFromScenegraphLocationString( idString)) if (connectedDagNode): self.mouseover.emit([connectedDagNode]) QtGui.QWidget.enterEvent(self, event)
def highlightIfMatching(self, dagNodeList): """ Change the background color of our line edit if our input is in the given list of dag nodes. """ if dagNodeList is None: self.lineEdit.setStyleSheet("") #self.lineEdit.setPalette(self.originalLineEditPalette) return connectionUuid = depends_data_packet.uuidFromScenegraphLocationString(self.input.value) for dagNode in dagNodeList: if dagNode.uuid == connectionUuid: self.lineEdit.setStyleSheet("background-color: rgb(91, 114, 138)")
def highlightIfMatching(self, dagNodeList): """ Change the background color of our line edit if our input is in the given list of dag nodes. """ if dagNodeList is None: self.lineEdit.setStyleSheet("") #self.lineEdit.setPalette(self.originalLineEditPalette) return connectionUuid = depends_data_packet.uuidFromScenegraphLocationString( self.input.value) for dagNode in dagNodeList: if dagNode.uuid == connectionUuid: self.lineEdit.setStyleSheet( "background-color: rgb(91, 114, 138)")