This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5 import QtWidgets, QtCore, QtPrintSupport, QtGui | |
class Window(QtWidgets.QWidget): | |
def __init__(self): | |
QtWidgets.QWidget.__init__(self) | |
self.setWindowTitle(self.tr('Document Printer')) | |
self.table = QtWidgets.QTableWidget(200, 5, self) | |
for row in range(self.table.rowCount()): | |
for col in range(self.table.columnCount()): |