ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

сообщение · 2021-06-21 17:03 UTC
R
from PySide2.QtWidgets import QApplication, QMainWindow, QPushButton from PySide2.QtWebEngineWidgets import QWebEnginePage from PySide2.QtCore import QUrl import sys class MainWindow(QMainWindow): def __init__(self): super().__init__() button = QPushButton("Print!") button.clicked.connect(self.the_button_was_clicked) # Set the central widget of the Window. self.setCentralWidget(button) def the_button_was_clicked(self): # qurl = QUrl() url = QUrl.fromUserInput("file:///home/dev/Images/source.svg") file = "output.pdf" qwp = QWebEnginePage() qwp.load(url) qwp.printToPdf(file) Can someone help me understand why the code above does not work?

All messages on 21 June 2021 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog