Better: <code> #!/usr/bin/env python import sys
from PyQt4.QtCore import * from PyQt4.QtGui import * Appli=QApplication(sys.argv) printer=QPrinter() doc=QTextDocument("Hello" ) dialog = QPrintDialog(printer) dialog.setModal(True) dialog.setWindowTitle("Print Document" ) # dialog.addEnabledOption(QAbstractPrintDialog.PrintSelection) if dialog.exec_() == True: doc.print_(printer) </code> _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt