def editTag(self, listItem):
     tagToModify = str(listItem.text())
     if tagToModify[0:12] == "Unknown Tag ":
         print "UNKNOWN TAG"
         tag = tagToModify[12:]
         # Call edit function with just the RFID Tag
         self.nperson = newPersonWidget(self.parent, tag=tag, metadataSlots=metadataSlots)
         self.nperson.show()
     else:
         tag = listItem.rfidTag
         print tag + "!!!"
         self.nperson = newPersonWidget(self.parent, tag=tag, name=str(listItem.text()), metadata=[], metadataSlots=metadataSlots)
         self.nperson.show()
Beispiel #2
0
 def editTag(self, listItem):
     tagToModify = str(listItem.text())
     if tagToModify[0:12] == "Unknown Tag ":
         print "UNKNOWN TAG"
         tag = tagToModify[12:]
         # Call edit function with just the RFID Tag
         self.nperson = newPersonWidget(self.parent,
                                        tag=tag,
                                        metadataSlots=metadataSlots)
         self.nperson.show()
     else:
         tag = listItem.rfidTag
         print tag + "!!!"
         self.nperson = newPersonWidget(self.parent,
                                        tag=tag,
                                        name=str(listItem.text()),
                                        metadata=[],
                                        metadataSlots=metadataSlots)
         self.nperson.show()
 def newPerson(self):
     #self.move(self.x(), self.y())
     self.nperson = newPersonWidget(self,metadataSlots=metadataSlots)
     self.nperson.show()
Beispiel #4
0
 def newPerson(self):
     #self.move(self.x(), self.y())
     self.nperson = newPersonWidget(self, metadataSlots=metadataSlots)
     self.nperson.show()