def _createNewJob( self ): self._job = NewJobDialog.getJob() if self._job: QDialog.accept(self)
def newJob(self): job = NewJobDialog.getJob(self) if job: self.loadJob(job)