-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexpanded_view.py
136 lines (106 loc) · 5.85 KB
/
expanded_view.py
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'expanded_view.ui'
##
## Created by: Qt User Interface Compiler version 5.15.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWidgets import *
class Ui_ExpandedView(object):
def setupUi(self, ExpandedView):
if not ExpandedView.objectName():
ExpandedView.setObjectName("ExpandedView")
ExpandedView.resize(807, 141)
sizePolicy = QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(ExpandedView.sizePolicy().hasHeightForWidth())
ExpandedView.setSizePolicy(sizePolicy)
self.horizontalLayout_2 = QHBoxLayout(ExpandedView)
self.horizontalLayout_2.setSpacing(2)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.horizontalLayout_2.setSizeConstraint(QLayout.SetNoConstraint)
self.horizontalLayout_2.setContentsMargins(2, 0, 2, 0)
self.labelIcon = QLabel(ExpandedView)
self.labelIcon.setObjectName("labelIcon")
sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.labelIcon.sizePolicy().hasHeightForWidth())
self.labelIcon.setSizePolicy(sizePolicy1)
self.labelIcon.setMinimumSize(QSize(48, 48))
self.labelIcon.setMaximumSize(QSize(48, 48))
self.labelIcon.setBaseSize(QSize(48, 48))
self.horizontalLayout_2.addWidget(self.labelIcon)
self.horizontalSpacer = QSpacerItem(8, 20, QSizePolicy.Fixed, QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(self.horizontalSpacer)
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setSpacing(3)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setSpacing(10)
self.horizontalLayout.setObjectName("horizontalLayout")
self.labelPackageName = QLabel(ExpandedView)
self.labelPackageName.setObjectName("labelPackageName")
self.horizontalLayout.addWidget(self.labelPackageName)
self.labelVersion = QLabel(ExpandedView)
self.labelVersion.setObjectName("labelVersion")
self.labelVersion.setTextFormat(Qt.RichText)
sizePolicy2 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0)
sizePolicy2.setHeightForWidth(self.labelVersion.sizePolicy().hasHeightForWidth())
self.labelVersion.setSizePolicy(sizePolicy2)
self.horizontalLayout.addWidget(self.labelVersion)
self.labelTags = QLabel(ExpandedView)
self.labelTags.setObjectName("labelTags")
self.horizontalLayout.addWidget(self.labelTags)
self.labelSort = QLabel(ExpandedView)
self.labelSort.setObjectName("labelSort")
self.horizontalLayout.addWidget(self.labelSort)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout.addItem(self.horizontalSpacer_2)
self.verticalLayout.addLayout(self.horizontalLayout)
self.labelDescription = QLabel(ExpandedView)
self.labelDescription.setObjectName("labelDescription")
sizePolicy.setHeightForWidth(self.labelDescription.sizePolicy().hasHeightForWidth())
self.labelDescription.setSizePolicy(sizePolicy)
self.labelDescription.setTextFormat(Qt.PlainText)
self.labelDescription.setAlignment(Qt.AlignLeading | Qt.AlignLeft | Qt.AlignTop)
self.labelDescription.setWordWrap(True)
self.verticalLayout.addWidget(self.labelDescription)
self.labelMaintainer = QLabel(ExpandedView)
self.labelMaintainer.setObjectName("labelMaintainer")
sizePolicy2.setHeightForWidth(self.labelMaintainer.sizePolicy().hasHeightForWidth())
self.labelMaintainer.setSizePolicy(sizePolicy2)
self.labelMaintainer.setAlignment(Qt.AlignLeading | Qt.AlignLeft | Qt.AlignTop)
self.labelMaintainer.setWordWrap(False)
self.verticalLayout.addWidget(self.labelMaintainer)
self.horizontalLayout_2.addLayout(self.verticalLayout)
self.labelStatus = QLabel(ExpandedView)
self.labelStatus.setObjectName("labelStatus")
self.labelStatus.setTextFormat(Qt.RichText)
self.labelStatus.setAlignment(Qt.AlignRight | Qt.AlignTrailing | Qt.AlignVCenter)
self.horizontalLayout_2.addWidget(self.labelStatus)
self.retranslateUi(ExpandedView)
QMetaObject.connectSlotsByName(ExpandedView)
# setupUi
def retranslateUi(self, ExpandedView):
# ExpandedView.setWindowTitle(QCoreApplication.translate("ExpandedView", "Form", None))
self.labelIcon.setText(QCoreApplication.translate("ExpandedView", "Icon", None))
self.labelPackageName.setText(
QCoreApplication.translate("ExpandedView", "<h1>Package Name</h1>", None)
)
self.labelVersion.setText(QCoreApplication.translate("ExpandedView", "Version", None))
self.labelTags.setText(QCoreApplication.translate("ExpandedView", "(tags)", None))
self.labelDescription.setText(
QCoreApplication.translate("ExpandedView", "Description", None)
)
self.labelMaintainer.setText(QCoreApplication.translate("ExpandedView", "Maintainer", None))
self.labelStatus.setText(
QCoreApplication.translate("ExpandedView", "Update Available", None)
)
# retranslateUi