def showNotes(self,*args):
while self.checksVLayout.count():
child = self.checksVLayout.takeAt(0)
if child.widget() is not None:
child.widget().deleteLater()
elif child.layout() is not None:
clearLayout(child.layout())
#self.notesTextEdit.setPlainText("")
if self.selShot in self.shotgunNotes.keys():
for note in self.shotgunNotes[self.selShot]:
nId,noteContent=note.split('###')
#self.notesTextEdit.insertPlainText(note+"\n")
self.notesCheck = QtGui.QCheckBox(noteContent,self.notesTab)
self.notesCheck.setObjectName(nId)
self.checksVLayout.addWidget(self.notesCheck)
评论列表
文章目录