-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit_purchase_dialog.py
99 lines (93 loc) · 5.72 KB
/
unit_purchase_dialog.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'unit_purchase_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_unitPurchaseDialog(object):
def setupUi(self, unitPurchaseDialog):
unitPurchaseDialog.setObjectName("unitPurchaseDialog")
unitPurchaseDialog.resize(704, 408)
self.buttonBox = QtWidgets.QDialogButtonBox(unitPurchaseDialog)
self.buttonBox.setGeometry(QtCore.QRect(-110, 360, 621, 32))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.verticalLayoutWidget = QtWidgets.QWidget(unitPurchaseDialog)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(50, 40, 581, 251))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label.setObjectName("label")
self.horizontalLayout_3.addWidget(self.label)
self.fund_selector = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.fund_selector.setObjectName("fund_selector")
self.horizontalLayout_3.addWidget(self.fund_selector)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_3 = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label_3.setObjectName("label_3")
self.horizontalLayout_4.addWidget(self.label_3)
self.purchase_dollars = QtWidgets.QLineEdit(self.verticalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.purchase_dollars.sizePolicy().hasHeightForWidth())
self.purchase_dollars.setSizePolicy(sizePolicy)
self.purchase_dollars.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.purchase_dollars.setObjectName("purchase_dollars")
self.horizontalLayout_4.addWidget(self.purchase_dollars)
self.verticalLayout.addLayout(self.horizontalLayout_4)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label_2.setObjectName("label_2")
self.horizontalLayout_2.addWidget(self.label_2)
self.purchase_date = QtWidgets.QDateEdit(self.verticalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.purchase_date.sizePolicy().hasHeightForWidth())
self.purchase_date.setSizePolicy(sizePolicy)
self.purchase_date.setKeyboardTracking(False)
self.purchase_date.setObjectName("purchase_date")
self.horizontalLayout_2.addWidget(self.purchase_date)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_4 = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label_4.setObjectName("label_4")
self.horizontalLayout.addWidget(self.label_4)
self.account_value = QtWidgets.QLineEdit(self.verticalLayoutWidget)
self.account_value.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.account_value.sizePolicy().hasHeightForWidth())
self.account_value.setSizePolicy(sizePolicy)
self.account_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.account_value.setObjectName("account_value")
self.horizontalLayout.addWidget(self.account_value)
self.verticalLayout.addLayout(self.horizontalLayout)
self.delete_purchase = QtWidgets.QCheckBox(unitPurchaseDialog)
self.delete_purchase.setEnabled(True)
self.delete_purchase.setGeometry(QtCore.QRect(240, 310, 201, 29))
self.delete_purchase.setObjectName("delete_purchase")
self.retranslateUi(unitPurchaseDialog)
self.buttonBox.accepted.connect(unitPurchaseDialog.accept)
self.buttonBox.rejected.connect(unitPurchaseDialog.reject)
QtCore.QMetaObject.connectSlotsByName(unitPurchaseDialog)
def retranslateUi(self, unitPurchaseDialog):
_translate = QtCore.QCoreApplication.translate
unitPurchaseDialog.setWindowTitle(_translate("unitPurchaseDialog", "Purchase Units"))
self.label.setText(_translate("unitPurchaseDialog", "Fund Name"))
self.label_3.setText(_translate("unitPurchaseDialog", "Dollars invested"))
self.label_2.setText(_translate("unitPurchaseDialog", "Purchase Date"))
self.label_4.setText(_translate("unitPurchaseDialog", "Account Value on Purchase Date "))
self.delete_purchase.setText(_translate("unitPurchaseDialog", "Delete Purchase"))