def submitEntry(self):
<EOL>mcclogs, physlogs = self.selectedLogs()<EOL>success = True<EOL>if mcclogs != []:<EOL><INDENT>if not self.acceptedUser("<STR_LIT>"):<EOL><INDENT>QMessageBox().warning(self, "<STR_LIT>", "<STR_LIT>")<EOL>return<EOL><DEDENT>fileName = self.xmlSetup("<STR_LIT>", mcclogs)<EOL>if fileName is None:<EOL><INDENT>return<EOL><DEDENT>if not self.imagePixmap.isNull():<EOL><INDENT>self.prepareImages(fileName, "<STR_LIT>")<EOL><DEDENT>success = self.sendToLogbook(fileName, "<STR_LIT>")<EOL><DEDENT>if physlogs != []:<EOL><INDENT>for i in range(len(physlogs)):<EOL><INDENT>fileName = self.xmlSetup("<STR_LIT>", physlogs[i])<EOL>if fileName is None:<EOL><INDENT>return<EOL><DEDENT>if not self.imagePixmap.isNull():<EOL><INDENT>self.prepareImages(fileName, "<STR_LIT>")<EOL><DEDENT>success_phys = self.sendToLogbook(fileName, "<STR_LIT>", physlogs[i])<EOL>success = success and success_phys<EOL><DEDENT><DEDENT>self.done(success)<EOL>
Process user inputs and subit logbook entry when user clicks Submit button