PyQt5最全37 打印机之QtPrintSupport使用打印机
import sys
from PyQt5 import QtPrintSupport
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class PrintSupport(QMainWindow):
"""
使用打印机
QtPrintSupport
所有的结果都是以图的形式输出的
"""
def __init__(self):
s