-
Notifications
You must be signed in to change notification settings - Fork 2
/
form_ManagePhotos.py
104 lines (96 loc) · 5.75 KB
/
form_ManagePhotos.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'form_ManagePhotos.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_frmManagePhotos(object):
def setupUi(self, frmManagePhotos):
frmManagePhotos.setObjectName("frmManagePhotos")
frmManagePhotos.resize(897, 680)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(frmManagePhotos.sizePolicy().hasHeightForWidth())
frmManagePhotos.setSizePolicy(sizePolicy)
frmManagePhotos.setMinimumSize(QtCore.QSize(200, 300))
frmManagePhotos.setSizeIncrement(QtCore.QSize(0, 0))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon_bird.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
frmManagePhotos.setWindowIcon(icon)
self.scrollArea = QtWidgets.QScrollArea(frmManagePhotos)
self.scrollArea.setGeometry(QtCore.QRect(0, 10, 891, 601))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
self.scrollArea.setSizePolicy(sizePolicy)
self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
self.scrollArea.setLineWidth(0)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.layLists = QtWidgets.QWidget()
self.layLists.setGeometry(QtCore.QRect(0, 0, 891, 601))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.layLists.sizePolicy().hasHeightForWidth())
self.layLists.setSizePolicy(sizePolicy)
self.layLists.setObjectName("layLists")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.layLists)
self.verticalLayout_3.setContentsMargins(5, 5, 5, 5)
self.verticalLayout_3.setSpacing(4)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.gridPhotos = QtWidgets.QGridLayout()
self.gridPhotos.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
self.gridPhotos.setObjectName("gridPhotos")
self.verticalLayout_3.addLayout(self.gridPhotos)
self.scrollArea.setWidget(self.layLists)
self.btnSavePhotoSettings = QtWidgets.QPushButton(frmManagePhotos)
self.btnSavePhotoSettings.setGeometry(QtCore.QRect(700, 630, 181, 28))
self.btnSavePhotoSettings.setObjectName("btnSavePhotoSettings")
self.btnCancel = QtWidgets.QPushButton(frmManagePhotos)
self.btnCancel.setGeometry(QtCore.QRect(510, 630, 181, 28))
self.btnCancel.setObjectName("btnCancel")
self.actionSetDateFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetDateFilter.setObjectName("actionSetDateFilter")
self.actionSetLocationFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetLocationFilter.setObjectName("actionSetLocationFilter")
self.actionSetFirstDateFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetFirstDateFilter.setObjectName("actionSetFirstDateFilter")
self.actionSetLastDateFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetLastDateFilter.setObjectName("actionSetLastDateFilter")
self.actionSetSpeciesFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetSpeciesFilter.setObjectName("actionSetSpeciesFilter")
self.actionSetCountryFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetCountryFilter.setObjectName("actionSetCountryFilter")
self.actionSetStateFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetStateFilter.setObjectName("actionSetStateFilter")
self.actionSetCountyFilter = QtWidgets.QAction(frmManagePhotos)
self.actionSetCountyFilter.setObjectName("actionSetCountyFilter")
self.retranslateUi(frmManagePhotos)
QtCore.QMetaObject.connectSlotsByName(frmManagePhotos)
def retranslateUi(self, frmManagePhotos):
_translate = QtCore.QCoreApplication.translate
frmManagePhotos.setWindowTitle(_translate("frmManagePhotos", "Species Report"))
self.btnSavePhotoSettings.setText(_translate("frmManagePhotos", "OK"))
self.btnCancel.setText(_translate("frmManagePhotos", "Cancel"))
self.actionSetDateFilter.setText(_translate("frmManagePhotos", "Set Filter to Date"))
self.actionSetLocationFilter.setText(_translate("frmManagePhotos", "Set Filter to Location"))
self.actionSetFirstDateFilter.setText(_translate("frmManagePhotos", "Set Filter to \"First\" Date"))
self.actionSetLastDateFilter.setText(_translate("frmManagePhotos", "Set Filter to \"Last\" Date"))
self.actionSetSpeciesFilter.setText(_translate("frmManagePhotos", "Set Filter to Species"))
self.actionSetCountryFilter.setText(_translate("frmManagePhotos", "Set Filter to Country"))
self.actionSetStateFilter.setText(_translate("frmManagePhotos", "Set Filter to State"))
self.actionSetCountyFilter.setText(_translate("frmManagePhotos", "Set Filter to County"))
import icons_rc
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
frmManagePhotos = QtWidgets.QWidget()
ui = Ui_frmManagePhotos()
ui.setupUi(frmManagePhotos)
frmManagePhotos.show()
sys.exit(app.exec_())