-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpdfviewer.py
More file actions
57 lines (45 loc) · 2.07 KB
/
Copy pathpdfviewer.py
File metadata and controls
57 lines (45 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'pdfviewer.ui'
##
## Created by: Qt User Interface Compiler version 5.15.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from os.path import abspath
from PySide2.QtCore import QCoreApplication, QMetaObject, QSize, QUrl
from PySide2.QtGui import QIcon
from PySide2.QtWidgets import QWidget, QVBoxLayout, QSizePolicy
from PySide2.QtWebEngineWidgets import QWebEngineView as QWebView
from PySide2.QtWebEngineWidgets import QWebEngineSettings
import includes_rc
class Ui_PDFViewer(object):
def setupUi(self, PDFViewer):
if not PDFViewer.objectName():
PDFViewer.setObjectName(u"PDFViewer")
PDFViewer.resize(820, 652)
icon = QIcon()
icon.addFile(u":/icons/icon.ico", QSize(), QIcon.Normal, QIcon.Off)
PDFViewer.setWindowIcon(icon)
self.centralwidget = QWidget(PDFViewer)
self.centralwidget.setObjectName(u"centralwidget")
self.verticalLayout = QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(u"verticalLayout")
self.webView = QWebView(self.centralwidget)
self.webView.setObjectName(u"webView")
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.webView.sizePolicy().hasHeightForWidth())
self.webView.setSizePolicy(sizePolicy)
self.webView.setProperty("url", QUrl(u""))
self.verticalLayout.addWidget(self.webView)
PDFViewer.setCentralWidget(self.centralwidget)
self.retranslateUi(PDFViewer)
QMetaObject.connectSlotsByName(PDFViewer)
# setupUi
def retranslateUi(self, PDFViewer):
PDFViewer.setWindowTitle(
QCoreApplication.translate("PDFViewer", u"MainWindow", None)
)
# retranslateUi