Logo Search packages:      
Sourcecode: uicilibris version File versions  Download package

def uicilibris::w2mMainWindow::viewPdfLatex (   self )
launches a subprocess to view the PDF file if any

Definition at line 355 of file __init__.py.

                          :
        """
        launches a subprocess to view the PDF file if any
        """
        if self.latexComp and os.path.exists(self.latexComp.pdfFileName):
            cmd="(evince %s &)" %self.latexComp.pdfFileName
            subprocess.call(cmd, shell=True)
        else:
            QMessageBox.warning(self, "Cannot open PDF file", "There is no reachable PDF file. Compile the LaTeX source, or check the error tab.")


Generated by  Doxygen 1.6.0   Back to index