def setupUi(self, frmSharesTransfer): frmSharesTransfer.setObjectName("frmSharesTransfer") frmSharesTransfer.resize(559, 167) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/transfer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmSharesTransfer.setWindowIcon(icon) frmSharesTransfer.setSizeGripEnabled(True) self.horizontalLayout = QtWidgets.QHBoxLayout(frmSharesTransfer) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lbl = QtWidgets.QLabel(frmSharesTransfer) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lbl.setFont(font) self.lbl.setStyleSheet("color: rgb(0, 128, 0);") self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout.addWidget(self.lbl) self.formLayout = QtWidgets.QFormLayout() self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") self.combo = QtWidgets.QComboBox(frmSharesTransfer) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.combo.sizePolicy().hasHeightForWidth()) self.combo.setSizePolicy(sizePolicy) self.combo.setObjectName("combo") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.combo) self.lblCombo = QtWidgets.QLabel(frmSharesTransfer) self.lblCombo.setObjectName("lblCombo") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.lblCombo) self.lblNumero = QtWidgets.QLabel(frmSharesTransfer) self.lblNumero.setObjectName("lblNumero") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.lblNumero) self.txtAcciones = myQLineEdit(frmSharesTransfer) self.txtAcciones.setEnabled(False) self.txtAcciones.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtAcciones.setObjectName("txtAcciones") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.txtAcciones) self.lblComisionLabel = QtWidgets.QLabel(frmSharesTransfer) self.lblComisionLabel.setObjectName("lblComisionLabel") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.lblComisionLabel) self.txtComision = myQLineEdit(frmSharesTransfer) self.txtComision.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtComision.setObjectName("txtComision") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.txtComision) self.verticalLayout.addLayout(self.formLayout) self.buttons = QtWidgets.QDialogButtonBox(frmSharesTransfer) self.buttons.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.buttons.setObjectName("buttons") self.verticalLayout.addWidget(self.buttons, 0, QtCore.Qt.AlignHCenter) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(frmSharesTransfer) QtCore.QMetaObject.connectSlotsByName(frmSharesTransfer)
def __init__(self, parent): QWidget.__init__(self, parent) self.horizontalLayout = QHBoxLayout(self) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.label = QLabel(self) self.label.setText(self.tr("Select a product")) self.horizontalLayout.addWidget(self.label) spacerItem = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.txtA = myQLineEdit(self) self.txtA.setAlignment(Qt.AlignRight | Qt.AlignTrailing | Qt.AlignVCenter) self.txtA.setToolTip(self.tr("Press the search button")) self.txtA.setText(0) self.horizontalLayout.addWidget(self.txtA) self.lblCurrencyA = QLabel(self) self.horizontalLayout.addWidget(self.lblCurrencyA) self.cmd = QToolButton(self) icon = QIcon() icon.addPixmap(QPixmap(":/xulpymoney/transfer.png"), QIcon.Normal, QIcon.Off) self.cmd.setIcon(icon) self.cmd.released.connect(self.on_cmd_released) self.horizontalLayout.addWidget(self.cmd) self.cmd.hide() self.txtB = myQLineEdit(self) self.txtB.setAlignment(Qt.AlignRight | Qt.AlignTrailing | Qt.AlignVCenter) self.txtB.setToolTip(self.tr("Press the search button")) self.txtB.setText(0) self.horizontalLayout.addWidget(self.txtB) self.lblCurrencyB = QLabel(self) self.horizontalLayout.addWidget(self.lblCurrencyB) sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(2) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtA.sizePolicy().hasHeightForWidth()) self.txtA.setSizePolicy(sizePolicy) sizePolicyb = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed) sizePolicyb.setHorizontalStretch(2) sizePolicyb.setVerticalStretch(0) sizePolicyb.setHeightForWidth( self.txtB.sizePolicy().hasHeightForWidth()) self.txtB.setSizePolicy(sizePolicy) self.setLabelSize(200) self.factormode = False
def on_actionProductsWithPriceVariation_triggered(self): from xulpymoney.ui.wdgProducts import wdgProducts self.w.close() d = MyModalQDialog() d.setWindowTitle(self.tr("Price variation")) d.setSettings(self.mem.settings, "frmMain", "mqdProductsWithPriceVariation") lblDays = QLabel("Days") txtDays = myQLineEdit(d) txtDays.setText(90) lblVariation = QLabel("Variation") txtVariation = myQLineEdit(d) txtVariation.setText(-10) d.setWidgets(lblDays, txtDays, lblVariation, txtVariation) d.exec_() sql = "select * from products where is_price_variation_in_time(id, {}, now()::timestamptz-interval '{} day')=true and obsolete=False order by name".format( txtVariation.text(), txtDays.text()) print(sql) self.w = wdgProducts(self.mem, sql) self.layout.addWidget(self.w) self.w.show()
def __init__(self, parent): QWidget.__init__(self, parent) lay = QHBoxLayout(self) self.txt = myQLineEdit(self) sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txt.sizePolicy().hasHeightForWidth()) self.txt.setSizePolicy(sizePolicy) self.txt.setReadOnly(True) self.cmd = QToolButton(self) self.cmd.released.connect(self.on_cmd_released) icon = QIcon() icon.addPixmap(QPixmap(":/xulpymoney/add.png"), QIcon.Normal, QIcon.Off) self.cmd.setIcon(icon) lay.addWidget(self.txt) lay.addWidget(self.cmd)
def setupUi(self, wdgCalculator): wdgCalculator.setObjectName("wdgCalculator") wdgCalculator.resize(1066, 852) self.horizontalLayout_8 = QtWidgets.QHBoxLayout(wdgCalculator) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lbl = QtWidgets.QLabel(wdgCalculator) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lbl.setFont(font) self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout.addWidget(self.lbl) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem) self.label_7 = QtWidgets.QLabel(wdgCalculator) self.label_7.setMaximumSize(QtCore.QSize(64, 64)) self.label_7.setText("") self.label_7.setPixmap(QtGui.QPixmap(":/xulpymoney/kcalc.png")) self.label_7.setScaledContents(True) self.label_7.setObjectName("label_7") self.horizontalLayout_4.addWidget(self.label_7) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_4) self.groupBox = QtWidgets.QGroupBox(wdgCalculator) self.groupBox.setObjectName("groupBox") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.formLayout_2 = QtWidgets.QFormLayout() self.formLayout_2.setObjectName("formLayout_2") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3) self.cmbProducts = QtWidgets.QComboBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbProducts.sizePolicy().hasHeightForWidth()) self.cmbProducts.setSizePolicy(sizePolicy) self.cmbProducts.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cmbProducts.setObjectName("cmbProducts") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.cmbProducts) self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label) self.cmbPrice = QtWidgets.QComboBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbPrice.sizePolicy().hasHeightForWidth()) self.cmbPrice.setSizePolicy(sizePolicy) self.cmbPrice.setObjectName("cmbPrice") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.cmbPrice) self.txtProductPrice = myQLineEdit(self.groupBox) self.txtProductPrice.setEnabled(True) self.txtProductPrice.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtProductPrice.setReadOnly(True) self.txtProductPrice.setObjectName("txtProductPrice") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.txtProductPrice) self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_2) self.spnProductPriceVariation = QtWidgets.QDoubleSpinBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spnProductPriceVariation.sizePolicy().hasHeightForWidth()) self.spnProductPriceVariation.setSizePolicy(sizePolicy) self.spnProductPriceVariation.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.spnProductPriceVariation.setMinimum(-99.99) self.spnProductPriceVariation.setObjectName("spnProductPriceVariation") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.spnProductPriceVariation) self.lblLeveraged = QtWidgets.QLabel(self.groupBox) self.lblLeveraged.setObjectName("lblLeveraged") self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.lblLeveraged) self.txtLeveraged = myQLineEdit(self.groupBox) self.txtLeveraged.setEnabled(True) self.txtLeveraged.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtLeveraged.setReadOnly(True) self.txtLeveraged.setObjectName("txtLeveraged") self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.txtLeveraged) self.lblFinalPrice = QtWidgets.QLabel(self.groupBox) self.lblFinalPrice.setObjectName("lblFinalPrice") self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.lblFinalPrice) self.txtFinalPrice = myQLineEdit(self.groupBox) self.txtFinalPrice.setEnabled(True) self.txtFinalPrice.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtFinalPrice.setObjectName("txtFinalPrice") self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.txtFinalPrice) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.cmbInvestments = QtWidgets.QComboBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbInvestments.sizePolicy().hasHeightForWidth()) self.cmbInvestments.setSizePolicy(sizePolicy) self.cmbInvestments.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cmbInvestments.setObjectName("cmbInvestments") self.horizontalLayout_6.addWidget(self.cmbInvestments) self.chkWithoutShares = QtWidgets.QCheckBox(self.groupBox) self.chkWithoutShares.setObjectName("chkWithoutShares") self.horizontalLayout_6.addWidget(self.chkWithoutShares) self.formLayout_2.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6) self.horizontalLayout_3.addLayout(self.formLayout_2) self.verticalLayout.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(wdgCalculator) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") self.lblAmount = QtWidgets.QLabel(self.groupBox_2) self.lblAmount.setObjectName("lblAmount") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.lblAmount) self.txtAmount = myQLineEdit(self.groupBox_2) self.txtAmount.setEnabled(True) self.txtAmount.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtAmount.setObjectName("txtAmount") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.txtAmount) self.lblShares = QtWidgets.QLabel(self.groupBox_2) self.lblShares.setObjectName("lblShares") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.lblShares) self.txtShares = myQLineEdit(self.groupBox_2) self.txtShares.setEnabled(True) self.txtShares.setText("") self.txtShares.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtShares.setReadOnly(True) self.txtShares.setObjectName("txtShares") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.txtShares) self.horizontalLayout_2.addLayout(self.formLayout) self.verticalLayout.addWidget(self.groupBox_2) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.cmdGraph = QtWidgets.QPushButton(wdgCalculator) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/report.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdGraph.setIcon(icon) self.cmdGraph.setObjectName("cmdGraph") self.horizontalLayout_5.addWidget(self.cmdGraph) self.line = QtWidgets.QFrame(wdgCalculator) self.line.setFrameShape(QtWidgets.QFrame.VLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.horizontalLayout_5.addWidget(self.line) self.cmdOrder = QtWidgets.QPushButton(wdgCalculator) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdOrder.setIcon(icon1) self.cmdOrder.setObjectName("cmdOrder") self.horizontalLayout_5.addWidget(self.cmdOrder) self.verticalLayout.addLayout(self.horizontalLayout_5) self.groupBox_3 = QtWidgets.QGroupBox(wdgCalculator) self.groupBox_3.setObjectName("groupBox_3") self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_3) self.horizontalLayout.setObjectName("horizontalLayout") self.mqtw = mqtw(self.groupBox_3) self.mqtw.setObjectName("mqtw") self.horizontalLayout.addWidget(self.mqtw) self.verticalLayout.addWidget(self.groupBox_3) self.horizontalLayout_8.addLayout(self.verticalLayout) self.retranslateUi(wdgCalculator) QtCore.QMetaObject.connectSlotsByName(wdgCalculator)
def setupUi(self, frmTransfer): frmTransfer.setObjectName("frmTransfer") frmTransfer.setWindowModality(QtCore.Qt.WindowModal) frmTransfer.resize(612, 246) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/transfer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmTransfer.setWindowIcon(icon) frmTransfer.setModal(True) self.horizontalLayout_6 = QtWidgets.QHBoxLayout(frmTransfer) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lblTitulo = QtWidgets.QLabel(frmTransfer) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitulo.setFont(font) self.lblTitulo.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitulo.setAlignment(QtCore.Qt.AlignCenter) self.lblTitulo.setObjectName("lblTitulo") self.verticalLayout.addWidget(self.lblTitulo) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.wdgDT = wdgDatetime(frmTransfer) self.wdgDT.setObjectName("wdgDT") self.horizontalLayout_2.addWidget(self.wdgDT) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_2 = QtWidgets.QLabel(frmTransfer) self.label_2.setObjectName("label_2") self.horizontalLayout_3.addWidget(self.label_2) self.cmbOrigen = QtWidgets.QComboBox(frmTransfer) self.cmbOrigen.setObjectName("cmbOrigen") self.horizontalLayout_3.addWidget(self.cmbOrigen) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_5 = QtWidgets.QLabel(frmTransfer) self.label_5.setObjectName("label_5") self.horizontalLayout_5.addWidget(self.label_5) self.cmbDestino = QtWidgets.QComboBox(frmTransfer) self.cmbDestino.setObjectName("cmbDestino") self.horizontalLayout_5.addWidget(self.cmbDestino) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtWidgets.QLabel(frmTransfer) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.txtImporte = myQLineEdit(frmTransfer) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtImporte.sizePolicy().hasHeightForWidth()) self.txtImporte.setSizePolicy(sizePolicy) self.txtImporte.setObjectName("txtImporte") self.horizontalLayout.addWidget(self.txtImporte) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_4 = QtWidgets.QLabel(frmTransfer) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.txtComision = myQLineEdit(frmTransfer) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtComision.sizePolicy().hasHeightForWidth()) self.txtComision.setSizePolicy(sizePolicy) self.txtComision.setObjectName("txtComision") self.horizontalLayout_4.addWidget(self.txtComision) self.verticalLayout.addLayout(self.horizontalLayout_4) self.cmd = QtWidgets.QPushButton(frmTransfer) self.cmd.setIcon(icon) self.cmd.setObjectName("cmd") self.verticalLayout.addWidget(self.cmd) self.horizontalLayout_6.addLayout(self.verticalLayout) self.retranslateUi(frmTransfer) QtCore.QMetaObject.connectSlotsByName(frmTransfer)
def setupUi(self, wdgOrdersAdd): wdgOrdersAdd.setObjectName("wdgOrdersAdd") wdgOrdersAdd.resize(826, 455) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/bank.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) wdgOrdersAdd.setWindowIcon(icon) self.horizontalLayout = QtWidgets.QHBoxLayout(wdgOrdersAdd) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lbl = QtWidgets.QLabel(wdgOrdersAdd) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lbl.setFont(font) self.lbl.setText("") self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout.addWidget(self.lbl) self.lblPixmap = QtWidgets.QLabel(wdgOrdersAdd) self.lblPixmap.setMaximumSize(QtCore.QSize(64, 64)) self.lblPixmap.setText("") self.lblPixmap.setPixmap(QtGui.QPixmap(":/xulpymoney/order.png")) self.lblPixmap.setScaledContents(True) self.lblPixmap.setAlignment(QtCore.Qt.AlignCenter) self.lblPixmap.setObjectName("lblPixmap") self.verticalLayout.addWidget(self.lblPixmap, 0, QtCore.Qt.AlignHCenter) self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.label_7 = QtWidgets.QLabel(wdgOrdersAdd) self.label_7.setObjectName("label_7") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_7) self.cmbProducts = QtWidgets.QComboBox(wdgOrdersAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbProducts.sizePolicy().hasHeightForWidth()) self.cmbProducts.setSizePolicy(sizePolicy) self.cmbProducts.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToContents) self.cmbProducts.setObjectName("cmbProducts") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.cmbProducts) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.cmbInvestments = QtWidgets.QComboBox(wdgOrdersAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbInvestments.sizePolicy().hasHeightForWidth()) self.cmbInvestments.setSizePolicy(sizePolicy) self.cmbInvestments.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToContents) self.cmbInvestments.setObjectName("cmbInvestments") self.horizontalLayout_6.addWidget(self.cmbInvestments) self.chkWithoutShares = QtWidgets.QCheckBox(wdgOrdersAdd) self.chkWithoutShares.setObjectName("chkWithoutShares") self.horizontalLayout_6.addWidget(self.chkWithoutShares) self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6) self.label = QtWidgets.QLabel(wdgOrdersAdd) self.label.setObjectName("label") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label) self.label_2 = QtWidgets.QLabel(wdgOrdersAdd) self.label_2.setObjectName("label_2") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_2) self.deDate = QtWidgets.QDateEdit(wdgOrdersAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.deDate.sizePolicy().hasHeightForWidth()) self.deDate.setSizePolicy(sizePolicy) self.deDate.setMinimumSize(QtCore.QSize(200, 0)) self.deDate.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.deDate.setCalendarPopup(True) self.deDate.setObjectName("deDate") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.deDate) self.label_3 = QtWidgets.QLabel(wdgOrdersAdd) self.label_3.setObjectName("label_3") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_3) self.deExpiration = QtWidgets.QDateEdit(wdgOrdersAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.deExpiration.sizePolicy().hasHeightForWidth()) self.deExpiration.setSizePolicy(sizePolicy) self.deExpiration.setMinimumSize(QtCore.QSize(200, 0)) self.deExpiration.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.deExpiration.setCalendarPopup(True) self.deExpiration.setObjectName("deExpiration") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.deExpiration) self.label_4 = QtWidgets.QLabel(wdgOrdersAdd) self.label_4.setObjectName("label_4") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_4) self.txtShares = myQLineEdit(wdgOrdersAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtShares.sizePolicy().hasHeightForWidth()) self.txtShares.setSizePolicy(sizePolicy) self.txtShares.setMinimumSize(QtCore.QSize(200, 0)) self.txtShares.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtShares.setObjectName("txtShares") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.txtShares) self.label_5 = QtWidgets.QLabel(wdgOrdersAdd) self.label_5.setObjectName("label_5") self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_5) self.txtPrice = myQLineEdit(wdgOrdersAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtPrice.sizePolicy().hasHeightForWidth()) self.txtPrice.setSizePolicy(sizePolicy) self.txtPrice.setMinimumSize(QtCore.QSize(200, 0)) self.txtPrice.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtPrice.setObjectName("txtPrice") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.txtPrice) self.label_6 = QtWidgets.QLabel(wdgOrdersAdd) self.label_6.setObjectName("label_6") self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_6) self.txtAmount = myQLineEdit(wdgOrdersAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAmount.sizePolicy().hasHeightForWidth()) self.txtAmount.setSizePolicy(sizePolicy) self.txtAmount.setMinimumSize(QtCore.QSize(200, 0)) self.txtAmount.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtAmount.setObjectName("txtAmount") self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.txtAmount) self.verticalLayout.addLayout(self.formLayout) self.lblWarning = QtWidgets.QLabel(wdgOrdersAdd) font = QtGui.QFont() font.setPointSize(15) font.setBold(True) font.setWeight(75) self.lblWarning.setFont(font) self.lblWarning.setStyleSheet("color: rgb(200, 0, 0);") self.lblWarning.setFrameShape(QtWidgets.QFrame.Box) self.lblWarning.setAlignment(QtCore.Qt.AlignCenter) self.lblWarning.setObjectName("lblWarning") self.verticalLayout.addWidget(self.lblWarning) self.buttonbox = QtWidgets.QDialogButtonBox(wdgOrdersAdd) self.buttonbox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonbox.setCenterButtons(True) self.buttonbox.setObjectName("buttonbox") self.verticalLayout.addWidget(self.buttonbox) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(wdgOrdersAdd) QtCore.QMetaObject.connectSlotsByName(wdgOrdersAdd)
def setupUi(self, frmSellingPoint): frmSellingPoint.setObjectName("frmSellingPoint") frmSellingPoint.setWindowModality(QtCore.Qt.WindowModal) frmSellingPoint.resize(790, 596) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/tools-wizard.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmSellingPoint.setWindowIcon(icon) frmSellingPoint.setSizeGripEnabled(True) frmSellingPoint.setModal(True) self.horizontalLayout_7 = QtWidgets.QHBoxLayout(frmSellingPoint) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.lblTitulo = QtWidgets.QLabel(frmSellingPoint) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitulo.setFont(font) self.lblTitulo.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitulo.setAlignment(QtCore.Qt.AlignCenter) self.lblTitulo.setObjectName("lblTitulo") self.verticalLayout_3.addWidget(self.lblTitulo) self.groupBox = QtWidgets.QGroupBox(frmSellingPoint) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.radTPC = QtWidgets.QRadioButton(self.groupBox) self.radTPC.setChecked(True) self.radTPC.setObjectName("radTPC") self.horizontalLayout_2.addWidget(self.radTPC) self.spnGainsPercentage = QtWidgets.QDoubleSpinBox(self.groupBox) self.spnGainsPercentage.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.spnGainsPercentage.setProperty("showGroupSeparator", False) self.spnGainsPercentage.setMaximum(1000.0) self.spnGainsPercentage.setSingleStep(0.5) self.spnGainsPercentage.setProperty("value", 10.0) self.spnGainsPercentage.setObjectName("spnGainsPercentage") self.horizontalLayout_2.addWidget(self.spnGainsPercentage) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.radGain = QtWidgets.QRadioButton(self.groupBox) self.radGain.setObjectName("radGain") self.horizontalLayout.addWidget(self.radGain) self.txtGanancia = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtGanancia.sizePolicy().hasHeightForWidth()) self.txtGanancia.setSizePolicy(sizePolicy) self.txtGanancia.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtGanancia.setObjectName("txtGanancia") self.horizontalLayout.addWidget(self.txtGanancia) self.lblAmountSymbol = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lblAmountSymbol.sizePolicy().hasHeightForWidth()) self.lblAmountSymbol.setSizePolicy(sizePolicy) self.lblAmountSymbol.setText("") self.lblAmountSymbol.setObjectName("lblAmountSymbol") self.horizontalLayout.addWidget(self.lblAmountSymbol) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.radPrice = QtWidgets.QRadioButton(self.groupBox) self.radPrice.setObjectName("radPrice") self.horizontalLayout_8.addWidget(self.radPrice) self.txtPrice = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtPrice.sizePolicy().hasHeightForWidth()) self.txtPrice.setSizePolicy(sizePolicy) self.txtPrice.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtPrice.setObjectName("txtPrice") self.horizontalLayout_8.addWidget(self.txtPrice) self.lblPriceSymbol = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lblPriceSymbol.sizePolicy().hasHeightForWidth()) self.lblPriceSymbol.setSizePolicy(sizePolicy) self.lblPriceSymbol.setText("") self.lblPriceSymbol.setObjectName("lblPriceSymbol") self.horizontalLayout_8.addWidget(self.lblPriceSymbol) self.verticalLayout.addLayout(self.horizontalLayout_8) self.verticalLayout_3.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(frmSellingPoint) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.chkGainsTime = QtWidgets.QCheckBox(self.groupBox_2) self.chkGainsTime.setObjectName("chkGainsTime") self.verticalLayout_2.addWidget(self.chkGainsTime) self.chkPonderanAll = QtWidgets.QCheckBox(self.groupBox_2) self.chkPonderanAll.setObjectName("chkPonderanAll") self.verticalLayout_2.addWidget(self.chkPonderanAll) self.horizontalLayout_3.addLayout(self.verticalLayout_2) self.verticalLayout_3.addWidget(self.groupBox_2) self.tab = QtWidgets.QTabWidget(frmSellingPoint) self.tab.setObjectName("tab") self.tab_current = QtWidgets.QWidget() self.tab_current.setObjectName("tab_current") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_current) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.mqtw = mqtw(self.tab_current) self.mqtw.setObjectName("mqtw") self.horizontalLayout_5.addWidget(self.mqtw) self.tab.addTab(self.tab_current, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.tab_2) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.mqtwSP = mqtw(self.tab_2) self.mqtwSP.setObjectName("mqtwSP") self.horizontalLayout_6.addWidget(self.mqtwSP) self.tab.addTab(self.tab_2, "") self.verticalLayout_3.addWidget(self.tab) self.cmd = QtWidgets.QPushButton(frmSellingPoint) self.cmd.setObjectName("cmd") self.verticalLayout_3.addWidget(self.cmd) self.horizontalLayout_7.addLayout(self.verticalLayout_3) self.retranslateUi(frmSellingPoint) self.tab.setCurrentIndex(0) self.txtGanancia.textEdited['QString'].connect(self.radGain.toggle) QtCore.QMetaObject.connectSlotsByName(frmSellingPoint)
def setupUi(self, wdgOpportunities): wdgOpportunities.setObjectName("wdgOpportunities") wdgOpportunities.resize(824, 596) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/bank.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) wdgOpportunities.setWindowIcon(icon) self.horizontalLayout_5 = QtWidgets.QHBoxLayout(wdgOpportunities) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.lbl = QtWidgets.QLabel(wdgOpportunities) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lbl.setFont(font) self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout_2.addWidget(self.lbl) self.tabWidget = QtWidgets.QTabWidget(wdgOpportunities) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.wdgYear = wdgYear(self.tab) self.wdgYear.setObjectName("wdgYear") self.horizontalLayout.addWidget(self.wdgYear) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.cmbMode = QtWidgets.QComboBox(self.tab) self.cmbMode.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cmbMode.setObjectName("cmbMode") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/new.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmbMode.addItem(icon1, "") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/xulpymoney/expired.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmbMode.addItem(icon2, "") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/xulpymoney/tools-wizard.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmbMode.addItem(icon3, "") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/xulpymoney/eye.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmbMode.addItem(icon4, "") self.horizontalLayout_2.addWidget(self.cmbMode) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_2) self.mqtwOpportunities = mqtwObjects(self.tab) self.mqtwOpportunities.setObjectName("mqtwOpportunities") self.verticalLayout.addWidget(self.mqtwOpportunities) self.horizontalLayout_3.addLayout(self.verticalLayout) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/xulpymoney/editar.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tabWidget.addTab(self.tab, icon5, "") self.verticalLayout_2.addWidget(self.tabWidget) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem4) self.label = QtWidgets.QLabel(wdgOpportunities) self.label.setObjectName("label") self.horizontalLayout_4.addWidget(self.label) self.txtInvest = myQLineEdit(wdgOpportunities) self.txtInvest.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtInvest.setObjectName("txtInvest") self.horizontalLayout_4.addWidget(self.txtInvest) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.horizontalLayout_5.addLayout(self.verticalLayout_2) self.actionOpportunityNew = QtWidgets.QAction(wdgOpportunities) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/xulpymoney/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionOpportunityNew.setIcon(icon6) self.actionOpportunityNew.setObjectName("actionOpportunityNew") self.actionOpportunityDelete = QtWidgets.QAction(wdgOpportunities) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(":/xulpymoney/button_cancel.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionOpportunityDelete.setIcon(icon7) self.actionOpportunityDelete.setObjectName("actionOpportunityDelete") self.actionOpportunityEdit = QtWidgets.QAction(wdgOpportunities) self.actionOpportunityEdit.setIcon(icon5) self.actionOpportunityEdit.setObjectName("actionOpportunityEdit") self.actionExecute = QtWidgets.QAction(wdgOpportunities) self.actionExecute.setIcon(icon3) self.actionExecute.setObjectName("actionExecute") self.actionRemove = QtWidgets.QAction(wdgOpportunities) self.actionRemove.setIcon(icon2) self.actionRemove.setObjectName("actionRemove") self.actionShowGraphic = QtWidgets.QAction(wdgOpportunities) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/xulpymoney/curiosity.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionShowGraphic.setIcon(icon8) self.actionShowGraphic.setObjectName("actionShowGraphic") self.retranslateUi(wdgOpportunities) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(wdgOpportunities)
def setupUi(self, frmInvestmentReport): frmInvestmentReport.setObjectName("frmInvestmentReport") frmInvestmentReport.setWindowModality(QtCore.Qt.WindowModal) frmInvestmentReport.resize(860, 588) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/report2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmInvestmentReport.setWindowIcon(icon) frmInvestmentReport.setModal(True) self.verticalLayout_10 = QtWidgets.QVBoxLayout(frmInvestmentReport) self.verticalLayout_10.setObjectName("verticalLayout_10") self.verticalLayout_9 = QtWidgets.QVBoxLayout() self.verticalLayout_9.setObjectName("verticalLayout_9") self.lblTitulo = QtWidgets.QLabel(frmInvestmentReport) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitulo.setFont(font) self.lblTitulo.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitulo.setAlignment(QtCore.Qt.AlignCenter) self.lblTitulo.setObjectName("lblTitulo") self.verticalLayout_9.addWidget(self.lblTitulo) self.tab = QtWidgets.QTabWidget(frmInvestmentReport) self.tab.setEnabled(True) self.tab.setObjectName("tab") self.tab_12 = QtWidgets.QWidget() self.tab_12.setObjectName("tab_12") self.horizontalLayout_15 = QtWidgets.QHBoxLayout(self.tab_12) self.horizontalLayout_15.setObjectName("horizontalLayout_15") self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem) self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_12.addItem(spacerItem1) self.groupBox = QtWidgets.QGroupBox(self.tab_12) self.groupBox.setTitle("") self.groupBox.setObjectName("groupBox") self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.cmbAccount = QtWidgets.QComboBox(self.groupBox) self.cmbAccount.setLayoutDirection(QtCore.Qt.RightToLeft) self.cmbAccount.setObjectName("cmbAccount") self.horizontalLayout_2.addWidget(self.cmbAccount) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.horizontalLayout_3.addWidget(self.label_2) self.txtInvestment = QtWidgets.QLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtInvestment.sizePolicy().hasHeightForWidth()) self.txtInvestment.setSizePolicy(sizePolicy) self.txtInvestment.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtInvestment.setObjectName("txtInvestment") self.horizontalLayout_3.addWidget(self.txtInvestment) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.ise = wdgProductSelector(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ise.sizePolicy().hasHeightForWidth()) self.ise.setSizePolicy(sizePolicy) self.ise.setObjectName("ise") self.horizontalLayout_8.addWidget(self.ise) self.verticalLayout.addLayout(self.horizontalLayout_8) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setObjectName("label_4") self.horizontalLayout_5.addWidget(self.label_4) self.txtVenta = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtVenta.sizePolicy().hasHeightForWidth()) self.txtVenta.setSizePolicy(sizePolicy) self.txtVenta.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtVenta.setObjectName("txtVenta") self.horizontalLayout_5.addWidget(self.txtVenta) self.cmdPuntoVenta = QtWidgets.QToolButton(self.groupBox) self.cmdPuntoVenta.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/tools-wizard.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdPuntoVenta.setIcon(icon1) self.cmdPuntoVenta.setObjectName("cmdPuntoVenta") self.horizontalLayout_5.addWidget(self.cmdPuntoVenta) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.chkExpiration = QtWidgets.QCheckBox(self.groupBox) self.chkExpiration.setChecked(True) self.chkExpiration.setObjectName("chkExpiration") self.horizontalLayout_10.addWidget(self.chkExpiration) self.cmdToday = QtWidgets.QToolButton(self.groupBox) self.cmdToday.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/xulpymoney/today.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdToday.setIcon(icon2) self.cmdToday.setIconSize(QtCore.QSize(32, 32)) self.cmdToday.setObjectName("cmdToday") self.horizontalLayout_10.addWidget(self.cmdToday) self.calExpiration = QtWidgets.QCalendarWidget(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.calExpiration.sizePolicy().hasHeightForWidth()) self.calExpiration.setSizePolicy(sizePolicy) self.calExpiration.setFirstDayOfWeek(QtCore.Qt.Monday) self.calExpiration.setVerticalHeaderFormat( QtWidgets.QCalendarWidget.NoVerticalHeader) self.calExpiration.setObjectName("calExpiration") self.horizontalLayout_10.addWidget(self.calExpiration) self.verticalLayout.addLayout(self.horizontalLayout_10) self.chkDailyAdjustment = QtWidgets.QCheckBox(self.groupBox) self.chkDailyAdjustment.setObjectName("chkDailyAdjustment") self.verticalLayout.addWidget(self.chkDailyAdjustment) self.cmdInvestment = QtWidgets.QPushButton(self.groupBox) self.cmdInvestment.setEnabled(False) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/xulpymoney/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdInvestment.setIcon(icon3) self.cmdInvestment.setObjectName("cmdInvestment") self.verticalLayout.addWidget(self.cmdInvestment) self.horizontalLayout_14.addLayout(self.verticalLayout) self.horizontalLayout_12.addWidget(self.groupBox) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_12.addItem(spacerItem2) self.verticalLayout_4.addLayout(self.horizontalLayout_12) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem3) self.horizontalLayout_15.addLayout(self.verticalLayout_4) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/xulpymoney/bundle.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tab.addTab(self.tab_12, icon4, "") self.tabInvestmentCurrent = QtWidgets.QWidget() self.tabInvestmentCurrent.setObjectName("tabInvestmentCurrent") self.horizontalLayout = QtWidgets.QHBoxLayout( self.tabInvestmentCurrent) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_11 = QtWidgets.QVBoxLayout() self.verticalLayout_11.setObjectName("verticalLayout_11") self.grpCurrentInvestmentCurrency = QtWidgets.QGroupBox( self.tabInvestmentCurrent) self.grpCurrentInvestmentCurrency.setObjectName( "grpCurrentInvestmentCurrency") self.verticalLayout_6 = QtWidgets.QVBoxLayout( self.grpCurrentInvestmentCurrency) self.verticalLayout_6.setObjectName("verticalLayout_6") self.mqtwInvestmentCurrent = mqtw(self.grpCurrentInvestmentCurrency) self.mqtwInvestmentCurrent.setObjectName("mqtwInvestmentCurrent") self.verticalLayout_6.addWidget(self.mqtwInvestmentCurrent) self.verticalLayout_11.addWidget(self.grpCurrentInvestmentCurrency) self.grpCurrentAccountCurrency = QtWidgets.QGroupBox( self.tabInvestmentCurrent) self.grpCurrentAccountCurrency.setObjectName( "grpCurrentAccountCurrency") self.verticalLayout_8 = QtWidgets.QVBoxLayout( self.grpCurrentAccountCurrency) self.verticalLayout_8.setObjectName("verticalLayout_8") self.mqtwInvestmentCurrentAccountCurrency = mqtw( self.grpCurrentAccountCurrency) self.mqtwInvestmentCurrentAccountCurrency.setObjectName( "mqtwInvestmentCurrentAccountCurrency") self.verticalLayout_8.addWidget( self.mqtwInvestmentCurrentAccountCurrency) self.verticalLayout_11.addWidget(self.grpCurrentAccountCurrency) self.lblAge = QtWidgets.QLabel(self.tabInvestmentCurrent) font = QtGui.QFont() font.setPointSize(8) font.setBold(True) font.setWeight(75) self.lblAge.setFont(font) self.lblAge.setAlignment(QtCore.Qt.AlignCenter) self.lblAge.setObjectName("lblAge") self.verticalLayout_11.addWidget(self.lblAge) self.horizontalLayout.addLayout(self.verticalLayout_11) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/xulpymoney/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tab.addTab(self.tabInvestmentCurrent, icon5, "") self.tabOperacionesHistoricas = QtWidgets.QWidget() self.tabOperacionesHistoricas.setObjectName("tabOperacionesHistoricas") self.horizontalLayout_17 = QtWidgets.QHBoxLayout( self.tabOperacionesHistoricas) self.horizontalLayout_17.setObjectName("horizontalLayout_17") self.verticalLayout_7 = QtWidgets.QVBoxLayout() self.verticalLayout_7.setObjectName("verticalLayout_7") self.chkOperaciones = QtWidgets.QCheckBox( self.tabOperacionesHistoricas) self.chkOperaciones.setObjectName("chkOperaciones") self.verticalLayout_7.addWidget(self.chkOperaciones) self.grpOperationsInvestmentCurrency = QtWidgets.QGroupBox( self.tabOperacionesHistoricas) self.grpOperationsInvestmentCurrency.setObjectName( "grpOperationsInvestmentCurrency") self.horizontalLayout_9 = QtWidgets.QHBoxLayout( self.grpOperationsInvestmentCurrency) self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.mqtwOperations = mqtw(self.grpOperationsInvestmentCurrency) self.mqtwOperations.setObjectName("mqtwOperations") self.horizontalLayout_9.addWidget(self.mqtwOperations) self.verticalLayout_7.addWidget(self.grpOperationsInvestmentCurrency) self.grpOperationsAccountCurrency = QtWidgets.QGroupBox( self.tabOperacionesHistoricas) self.grpOperationsAccountCurrency.setObjectName( "grpOperationsAccountCurrency") self.horizontalLayout_16 = QtWidgets.QHBoxLayout( self.grpOperationsAccountCurrency) self.horizontalLayout_16.setObjectName("horizontalLayout_16") self.mqtwOperationsAccountCurrency = mqtw( self.grpOperationsAccountCurrency) self.mqtwOperationsAccountCurrency.setObjectName( "mqtwOperationsAccountCurrency") self.horizontalLayout_16.addWidget(self.mqtwOperationsAccountCurrency) self.verticalLayout_7.addWidget(self.grpOperationsAccountCurrency) self.horizontalLayout_17.addLayout(self.verticalLayout_7) self.tab.addTab(self.tabOperacionesHistoricas, icon5, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab_2) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout_14 = QtWidgets.QVBoxLayout() self.verticalLayout_14.setObjectName("verticalLayout_14") self.grpHistoricalInvestmentCurrency = QtWidgets.QGroupBox(self.tab_2) self.grpHistoricalInvestmentCurrency.setObjectName( "grpHistoricalInvestmentCurrency") self.verticalLayout_12 = QtWidgets.QVBoxLayout( self.grpHistoricalInvestmentCurrency) self.verticalLayout_12.setObjectName("verticalLayout_12") self.mqtwInvestmentHistorical = mqtwObjects( self.grpHistoricalInvestmentCurrency) self.mqtwInvestmentHistorical.setObjectName("mqtwInvestmentHistorical") self.verticalLayout_12.addWidget(self.mqtwInvestmentHistorical) self.verticalLayout_14.addWidget(self.grpHistoricalInvestmentCurrency) self.grpHistoricalAccountCurrency = QtWidgets.QGroupBox(self.tab_2) self.grpHistoricalAccountCurrency.setObjectName( "grpHistoricalAccountCurrency") self.verticalLayout_13 = QtWidgets.QVBoxLayout( self.grpHistoricalAccountCurrency) self.verticalLayout_13.setObjectName("verticalLayout_13") self.mqtwInvestmentHistoricalAccountCurrency = mqtwObjects( self.grpHistoricalAccountCurrency) self.mqtwInvestmentHistoricalAccountCurrency.setObjectName( "mqtwInvestmentHistoricalAccountCurrency") self.verticalLayout_13.addWidget( self.mqtwInvestmentHistoricalAccountCurrency) self.verticalLayout_14.addWidget(self.grpHistoricalAccountCurrency) self.horizontalLayout_4.addLayout(self.verticalLayout_14) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/xulpymoney/history2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tab.addTab(self.tab_2, icon6, "") self.tabDividends = QtWidgets.QWidget() self.tabDividends.setObjectName("tabDividends") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.tabDividends) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.verticalLayout_16 = QtWidgets.QVBoxLayout() self.verticalLayout_16.setObjectName("verticalLayout_16") self.chkHistoricalDividends = QtWidgets.QCheckBox(self.tabDividends) self.chkHistoricalDividends.setObjectName("chkHistoricalDividends") self.verticalLayout_16.addWidget(self.chkHistoricalDividends) self.grpDividendsInvestmentCurrency = QtWidgets.QGroupBox( self.tabDividends) self.grpDividendsInvestmentCurrency.setObjectName( "grpDividendsInvestmentCurrency") self.verticalLayout_5 = QtWidgets.QVBoxLayout( self.grpDividendsInvestmentCurrency) self.verticalLayout_5.setObjectName("verticalLayout_5") self.mqtwDividends = mqtw(self.grpDividendsInvestmentCurrency) self.mqtwDividends.setObjectName("mqtwDividends") self.verticalLayout_5.addWidget(self.mqtwDividends) self.verticalLayout_16.addWidget(self.grpDividendsInvestmentCurrency) self.grpDividendsAccountCurrency = QtWidgets.QGroupBox( self.tabDividends) self.grpDividendsAccountCurrency.setObjectName( "grpDividendsAccountCurrency") self.verticalLayout_15 = QtWidgets.QVBoxLayout( self.grpDividendsAccountCurrency) self.verticalLayout_15.setObjectName("verticalLayout_15") self.mqtwDividendsAccountCurrency = mqtw( self.grpDividendsAccountCurrency) self.mqtwDividendsAccountCurrency.setObjectName( "mqtwDividendsAccountCurrency") self.verticalLayout_15.addWidget(self.mqtwDividendsAccountCurrency) self.verticalLayout_16.addWidget(self.grpDividendsAccountCurrency) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.grpDividendsEstimation = QtWidgets.QGroupBox(self.tabDividends) self.grpDividendsEstimation.setObjectName("grpDividendsEstimation") self.horizontalLayout_11 = QtWidgets.QHBoxLayout( self.grpDividendsEstimation) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.lblDivAnualEstimado = QtWidgets.QLabel( self.grpDividendsEstimation) self.lblDivAnualEstimado.setObjectName("lblDivAnualEstimado") self.verticalLayout_2.addWidget(self.lblDivAnualEstimado) self.lblDivFechaRevision = QtWidgets.QLabel( self.grpDividendsEstimation) self.lblDivFechaRevision.setObjectName("lblDivFechaRevision") self.verticalLayout_2.addWidget(self.lblDivFechaRevision) self.lblDivSaldoEstimado = QtWidgets.QLabel( self.grpDividendsEstimation) self.lblDivSaldoEstimado.setObjectName("lblDivSaldoEstimado") self.verticalLayout_2.addWidget(self.lblDivSaldoEstimado) self.horizontalLayout_11.addLayout(self.verticalLayout_2) self.horizontalLayout_6.addWidget(self.grpDividendsEstimation) self.grpDividendsEfectivos = QtWidgets.QGroupBox(self.tabDividends) self.grpDividendsEfectivos.setObjectName("grpDividendsEfectivos") self.horizontalLayout_13 = QtWidgets.QHBoxLayout( self.grpDividendsEfectivos) self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.lblDivTPC = QtWidgets.QLabel(self.grpDividendsEfectivos) self.lblDivTPC.setObjectName("lblDivTPC") self.verticalLayout_3.addWidget(self.lblDivTPC) self.lblDivTAE = QtWidgets.QLabel(self.grpDividendsEfectivos) self.lblDivTAE.setObjectName("lblDivTAE") self.verticalLayout_3.addWidget(self.lblDivTAE) self.horizontalLayout_13.addLayout(self.verticalLayout_3) self.horizontalLayout_6.addWidget(self.grpDividendsEfectivos) self.verticalLayout_16.addLayout(self.horizontalLayout_6) self.horizontalLayout_7.addLayout(self.verticalLayout_16) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(":/xulpymoney/dividends.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tab.addTab(self.tabDividends, icon7, "") self.tabChart = QtWidgets.QWidget() self.tabChart.setObjectName("tabChart") self.horizontalLayout_20 = QtWidgets.QHBoxLayout(self.tabChart) self.horizontalLayout_20.setObjectName("horizontalLayout_20") self.wdgTS = VCTemporalSeries(self.tabChart) self.wdgTS.setObjectName("wdgTS") self.horizontalLayout_20.addWidget(self.wdgTS) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/xulpymoney/report.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tab.addTab(self.tabChart, icon8, "") self.verticalLayout_9.addWidget(self.tab) self.verticalLayout_10.addLayout(self.verticalLayout_9) self.actionOperationAdd = QtWidgets.QAction(frmInvestmentReport) icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/xulpymoney/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionOperationAdd.setIcon(icon9) self.actionOperationAdd.setObjectName("actionOperationAdd") self.actionOperationDelete = QtWidgets.QAction(frmInvestmentReport) icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap(":/xulpymoney/list-remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionOperationDelete.setIcon(icon10) self.actionOperationDelete.setObjectName("actionOperationDelete") self.actionDividendAdd = QtWidgets.QAction(frmInvestmentReport) self.actionDividendAdd.setIcon(icon9) self.actionDividendAdd.setObjectName("actionDividendAdd") self.actionDividendRemove = QtWidgets.QAction(frmInvestmentReport) self.actionDividendRemove.setIcon(icon10) self.actionDividendRemove.setObjectName("actionDividendRemove") self.actionOperationEdit = QtWidgets.QAction(frmInvestmentReport) icon11 = QtGui.QIcon() icon11.addPixmap(QtGui.QPixmap(":/xulpymoney/editar.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionOperationEdit.setIcon(icon11) self.actionOperationEdit.setObjectName("actionOperationEdit") self.actionDisReinvest = QtWidgets.QAction(frmInvestmentReport) self.actionDisReinvest.setIcon(icon6) self.actionDisReinvest.setObjectName("actionDisReinvest") self.actionSellingPoint = QtWidgets.QAction(frmInvestmentReport) self.actionSellingPoint.setIcon(icon1) self.actionSellingPoint.setObjectName("actionSellingPoint") self.actionDividendEdit = QtWidgets.QAction(frmInvestmentReport) self.actionDividendEdit.setIcon(icon11) self.actionDividendEdit.setObjectName("actionDividendEdit") self.actionSharesTransferUndo = QtWidgets.QAction(frmInvestmentReport) self.actionSharesTransferUndo.setIcon(icon10) self.actionSharesTransferUndo.setObjectName("actionSharesTransferUndo") self.actionSharesTransfer = QtWidgets.QAction(frmInvestmentReport) icon12 = QtGui.QIcon() icon12.addPixmap(QtGui.QPixmap(":/xulpymoney/transfer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionSharesTransfer.setIcon(icon12) self.actionSharesTransfer.setObjectName("actionSharesTransfer") self.actionSplit = QtWidgets.QAction(frmInvestmentReport) self.actionSplit.setIcon(icon11) self.actionSplit.setObjectName("actionSplit") self.actionChangeBenchmarkPrice = QtWidgets.QAction( frmInvestmentReport) self.actionChangeBenchmarkPrice.setIcon(icon11) self.actionChangeBenchmarkPrice.setObjectName( "actionChangeBenchmarkPrice") self.actionRangeReport = QtWidgets.QAction(frmInvestmentReport) icon13 = QtGui.QIcon() icon13.addPixmap(QtGui.QPixmap(":/xulpymoney/eye.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionRangeReport.setIcon(icon13) self.actionRangeReport.setObjectName("actionRangeReport") self.actionDisReinvestProduct = QtWidgets.QAction(frmInvestmentReport) icon14 = QtGui.QIcon() icon14.addPixmap(QtGui.QPixmap(":/xulpymoney/study.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionDisReinvestProduct.setIcon(icon14) self.actionDisReinvestProduct.setObjectName("actionDisReinvestProduct") self.actionContractAdd = QtWidgets.QAction(frmInvestmentReport) self.actionContractAdd.setIcon(icon9) self.actionContractAdd.setObjectName("actionContractAdd") self.actionContractDelete = QtWidgets.QAction(frmInvestmentReport) self.actionContractDelete.setIcon(icon10) self.actionContractDelete.setObjectName("actionContractDelete") self.actionContractEdit = QtWidgets.QAction(frmInvestmentReport) self.actionContractEdit.setIcon(icon11) self.actionContractEdit.setObjectName("actionContractEdit") self.retranslateUi(frmInvestmentReport) self.tab.setCurrentIndex(0) self.chkExpiration.toggled['bool'].connect( self.calExpiration.setEnabled) QtCore.QMetaObject.connectSlotsByName(frmInvestmentReport)
def setupUi(self, wdgOpportunitiesAdd): wdgOpportunitiesAdd.setObjectName("wdgOpportunitiesAdd") wdgOpportunitiesAdd.resize(820, 406) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/bank.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) wdgOpportunitiesAdd.setWindowIcon(icon) self.horizontalLayout = QtWidgets.QHBoxLayout(wdgOpportunitiesAdd) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lbl = QtWidgets.QLabel(wdgOpportunitiesAdd) self.lbl.setMinimumSize(QtCore.QSize(800, 0)) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lbl.setFont(font) self.lbl.setText("") self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout.addWidget(self.lbl) self.lblPixmap = QtWidgets.QLabel(wdgOpportunitiesAdd) self.lblPixmap.setMaximumSize(QtCore.QSize(64, 64)) self.lblPixmap.setText("") self.lblPixmap.setPixmap(QtGui.QPixmap(":/xulpymoney/opportunity.png")) self.lblPixmap.setScaledContents(True) self.lblPixmap.setAlignment(QtCore.Qt.AlignCenter) self.lblPixmap.setObjectName("lblPixmap") self.verticalLayout.addWidget(self.lblPixmap, 0, QtCore.Qt.AlignHCenter) self.productSelector = wdgProductSelector(wdgOpportunitiesAdd) self.productSelector.setObjectName("productSelector") self.verticalLayout.addWidget(self.productSelector) self.formLayout = QtWidgets.QFormLayout() self.formLayout.setFieldGrowthPolicy( QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") self.deDate = QtWidgets.QDateEdit(wdgOpportunitiesAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.deDate.sizePolicy().hasHeightForWidth()) self.deDate.setSizePolicy(sizePolicy) self.deDate.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.deDate.setCalendarPopup(True) self.deDate.setObjectName("deDate") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.deDate) self.label_2 = QtWidgets.QLabel(wdgOpportunitiesAdd) self.label_2.setObjectName("label_2") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2) self.txtEntry = myQLineEdit(wdgOpportunitiesAdd) self.txtEntry.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtEntry.setObjectName("txtEntry") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.txtEntry) self.label_5 = QtWidgets.QLabel(wdgOpportunitiesAdd) self.label_5.setObjectName("label_5") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_5) self.label = QtWidgets.QLabel(wdgOpportunitiesAdd) self.label.setObjectName("label") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label) self.label_3 = QtWidgets.QLabel(wdgOpportunitiesAdd) self.label_3.setObjectName("label_3") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_3) self.txtStoploss = myQLineEdit(wdgOpportunitiesAdd) self.txtStoploss.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtStoploss.setObjectName("txtStoploss") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.txtStoploss) self.txtTarget = myQLineEdit(wdgOpportunitiesAdd) self.txtTarget.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtTarget.setObjectName("txtTarget") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.txtTarget) self.label_4 = QtWidgets.QLabel(wdgOpportunitiesAdd) self.label_4.setObjectName("label_4") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_4) self.cmbInvestmentTypePosition = QtWidgets.QComboBox( wdgOpportunitiesAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbInvestmentTypePosition.sizePolicy().hasHeightForWidth()) self.cmbInvestmentTypePosition.setSizePolicy(sizePolicy) self.cmbInvestmentTypePosition.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToContents) self.cmbInvestmentTypePosition.setObjectName( "cmbInvestmentTypePosition") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.cmbInvestmentTypePosition) self.verticalLayout.addLayout(self.formLayout) self.buttonbox = QtWidgets.QDialogButtonBox(wdgOpportunitiesAdd) self.buttonbox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonbox.setCenterButtons(True) self.buttonbox.setObjectName("buttonbox") self.verticalLayout.addWidget(self.buttonbox) self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(wdgOpportunitiesAdd) QtCore.QMetaObject.connectSlotsByName(wdgOpportunitiesAdd) wdgOpportunitiesAdd.setTabOrder(self.txtEntry, self.txtTarget) wdgOpportunitiesAdd.setTabOrder(self.txtTarget, self.txtStoploss) wdgOpportunitiesAdd.setTabOrder(self.txtStoploss, self.deDate)
def setupUi(self, frmSplitManual): frmSplitManual.setObjectName("frmSplitManual") frmSplitManual.resize(872, 477) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/study.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmSplitManual.setWindowIcon(icon) frmSplitManual.setSizeGripEnabled(True) self.horizontalLayout_4 = QtWidgets.QHBoxLayout(frmSplitManual) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.label = QtWidgets.QLabel(frmSplitManual) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.verticalLayout_3.addWidget(self.label) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.wdgDtStart = wdgDatetime(frmSplitManual) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.wdgDtStart.sizePolicy().hasHeightForWidth()) self.wdgDtStart.setSizePolicy(sizePolicy) self.wdgDtStart.setObjectName("wdgDtStart") self.horizontalLayout_3.addWidget(self.wdgDtStart) self.line = QtWidgets.QFrame(frmSplitManual) self.line.setFrameShape(QtWidgets.QFrame.VLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.horizontalLayout_3.addWidget(self.line) self.wdgDtEnd = wdgDatetime(frmSplitManual) self.wdgDtEnd.setObjectName("wdgDtEnd") self.horizontalLayout_3.addWidget(self.wdgDtEnd) self.verticalLayout_3.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.label_2 = QtWidgets.QLabel(frmSplitManual) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setItalic(True) self.label_2.setFont(font) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.verticalLayout.addWidget(self.label_2) self.txtInitial = myQLineEdit(frmSplitManual) self.txtInitial.setAlignment(QtCore.Qt.AlignCenter) self.txtInitial.setObjectName("txtInitial") self.verticalLayout.addWidget(self.txtInitial) self.horizontalLayout.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.label_3 = QtWidgets.QLabel(frmSplitManual) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setItalic(True) self.label_3.setFont(font) self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName("label_3") self.verticalLayout_2.addWidget(self.label_3) self.txtFinal = myQLineEdit(frmSplitManual) self.txtFinal.setAlignment(QtCore.Qt.AlignCenter) self.txtFinal.setObjectName("txtFinal") self.verticalLayout_2.addWidget(self.txtFinal) self.horizontalLayout.addLayout(self.verticalLayout_2) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout_3.addLayout(self.horizontalLayout) self.lblExample = QtWidgets.QLabel(frmSplitManual) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lblExample.setFont(font) self.lblExample.setAlignment(QtCore.Qt.AlignCenter) self.lblExample.setWordWrap(True) self.lblExample.setObjectName("lblExample") self.verticalLayout_3.addWidget(self.lblExample) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.buttonbox = QtWidgets.QDialogButtonBox(frmSplitManual) self.buttonbox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.buttonbox.setCenterButtons(True) self.buttonbox.setObjectName("buttonbox") self.horizontalLayout_2.addWidget(self.buttonbox) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.horizontalLayout_4.addLayout(self.verticalLayout_3) self.retranslateUi(frmSplitManual) QtCore.QMetaObject.connectSlotsByName(frmSplitManual)
def setupUi(self, wdgProductRange): wdgProductRange.setObjectName("wdgProductRange") wdgProductRange.resize(991, 735) self.horizontalLayout_3 = QtWidgets.QHBoxLayout(wdgProductRange) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.lbl = QtWidgets.QLabel(wdgProductRange) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lbl.sizePolicy().hasHeightForWidth()) self.lbl.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lbl.setFont(font) self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout_3.addWidget(self.lbl) self.groupBox = QtWidgets.QGroupBox(wdgProductRange) self.groupBox.setObjectName("groupBox") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.horizontalLayout_8.addWidget(self.label_3) self.cmbProducts = QtWidgets.QComboBox(self.groupBox) self.cmbProducts.setObjectName("cmbProducts") self.horizontalLayout_8.addWidget(self.cmbProducts) self.cmdIRAnalisis = QtWidgets.QToolButton(self.groupBox) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/books.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdIRAnalisis.setIcon(icon) self.cmdIRAnalisis.setObjectName("cmdIRAnalisis") self.horizontalLayout_8.addWidget(self.cmdIRAnalisis) self.cmdDrawRanges = QtWidgets.QToolButton(self.groupBox) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/layers2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdDrawRanges.setIcon(icon1) self.cmdDrawRanges.setObjectName("cmdDrawRanges") self.horizontalLayout_8.addWidget(self.cmdDrawRanges) self.cmdIRInsertar = QtWidgets.QToolButton(self.groupBox) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/xulpymoney/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdIRInsertar.setIcon(icon2) self.cmdIRInsertar.setObjectName("cmdIRInsertar") self.horizontalLayout_8.addWidget(self.cmdIRInsertar) self.verticalLayout.addLayout(self.horizontalLayout_8) self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.chkOnlyFirst = QtWidgets.QCheckBox(self.groupBox) self.chkOnlyFirst.setObjectName("chkOnlyFirst") self.horizontalLayout_13.addWidget(self.chkOnlyFirst) self.verticalLayout.addLayout(self.horizontalLayout_13) self.horizontalLayout_11 = QtWidgets.QHBoxLayout() self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.chkOnlyAccount = QtWidgets.QCheckBox(self.groupBox) self.chkOnlyAccount.setObjectName("chkOnlyAccount") self.horizontalLayout_11.addWidget(self.chkOnlyAccount) self.cmbOnlyAccount = QtWidgets.QComboBox(self.groupBox) self.cmbOnlyAccount.setEnabled(False) self.cmbOnlyAccount.setObjectName("cmbOnlyAccount") self.horizontalLayout_11.addWidget(self.cmbOnlyAccount) self.verticalLayout.addLayout(self.horizontalLayout_11) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.spnDown = QtWidgets.QDoubleSpinBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spnDown.sizePolicy().hasHeightForWidth()) self.spnDown.setSizePolicy(sizePolicy) self.spnDown.setMinimumSize(QtCore.QSize(200, 0)) self.spnDown.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.spnDown.setDecimals(2) self.spnDown.setSingleStep(0.1) self.spnDown.setProperty("value", 2.0) self.spnDown.setObjectName("spnDown") self.horizontalLayout.addWidget(self.spnDown) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.horizontalLayout_9.addWidget(self.label_5) self.spnGains = QtWidgets.QDoubleSpinBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spnGains.sizePolicy().hasHeightForWidth()) self.spnGains.setSizePolicy(sizePolicy) self.spnGains.setMinimumSize(QtCore.QSize(200, 0)) self.spnGains.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.spnGains.setDecimals(2) self.spnGains.setSingleStep(0.1) self.spnGains.setProperty("value", 2.0) self.spnGains.setObjectName("spnGains") self.horizontalLayout_9.addWidget(self.spnGains) self.verticalLayout.addLayout(self.horizontalLayout_9) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(self.groupBox) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.txtInvertir = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtInvertir.sizePolicy().hasHeightForWidth()) self.txtInvertir.setSizePolicy(sizePolicy) self.txtInvertir.setMinimumSize(QtCore.QSize(200, 0)) self.txtInvertir.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtInvertir.setObjectName("txtInvertir") self.horizontalLayout_2.addWidget(self.txtInvertir) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setObjectName("label_4") self.horizontalLayout_10.addWidget(self.label_4) self.cmbRecomendations = QtWidgets.QComboBox(self.groupBox) self.cmbRecomendations.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cmbRecomendations.setObjectName("cmbRecomendations") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/xulpymoney/button_cancel.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmbRecomendations.addItem(icon3, "") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/xulpymoney/star.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmbRecomendations.addItem(icon4, "") self.cmbRecomendations.addItem(icon4, "") self.cmbRecomendations.addItem(icon4, "") self.horizontalLayout_10.addWidget(self.cmbRecomendations) self.verticalLayout.addLayout(self.horizontalLayout_10) self.horizontalLayout_5.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.cmd = QtWidgets.QPushButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmd.sizePolicy().hasHeightForWidth()) self.cmd.setSizePolicy(sizePolicy) self.cmd.setObjectName("cmd") self.verticalLayout_2.addWidget(self.cmd) self.horizontalLayout_5.addLayout(self.verticalLayout_2) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.horizontalLayout_7.addLayout(self.horizontalLayout_5) self.verticalLayout_3.addWidget(self.groupBox) self.mqtw = mqtwObjects(wdgProductRange) self.mqtw.setObjectName("mqtw") self.verticalLayout_3.addWidget(self.mqtw) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.lblTotal = QtWidgets.QLabel(wdgProductRange) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lblTotal.sizePolicy().hasHeightForWidth()) self.lblTotal.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(8) font.setBold(True) font.setWeight(75) self.lblTotal.setFont(font) self.lblTotal.setAlignment(QtCore.Qt.AlignCenter) self.lblTotal.setObjectName("lblTotal") self.horizontalLayout_6.addWidget(self.lblTotal) self.verticalLayout_3.addLayout(self.horizontalLayout_6) self.horizontalLayout_3.addLayout(self.verticalLayout_3) self.actionOrderAdd = QtWidgets.QAction(wdgProductRange) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/xulpymoney/order.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionOrderAdd.setIcon(icon5) self.actionOrderAdd.setObjectName("actionOrderAdd") self.actionInvestmentMergingCurrent = QtWidgets.QAction(wdgProductRange) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/xulpymoney/investment.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionInvestmentMergingCurrent.setIcon(icon6) self.actionInvestmentMergingCurrent.setObjectName("actionInvestmentMergingCurrent") self.actionRangeInformation = QtWidgets.QAction(wdgProductRange) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(":/xulpymoney/gafas.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionRangeInformation.setIcon(icon7) self.actionRangeInformation.setObjectName("actionRangeInformation") self.retranslateUi(wdgProductRange) self.chkOnlyAccount.toggled['bool'].connect(self.cmbOnlyAccount.setEnabled) QtCore.QMetaObject.connectSlotsByName(wdgProductRange)
def setupUi(self, wdgDisReinvest): wdgDisReinvest.setObjectName("wdgDisReinvest") wdgDisReinvest.resize(1102, 806) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/tools-wizard.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) wdgDisReinvest.setWindowIcon(icon) self.horizontalLayout_21 = QtWidgets.QHBoxLayout(wdgDisReinvest) self.horizontalLayout_21.setObjectName("horizontalLayout_21") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.lblTitulo = QtWidgets.QLabel(wdgDisReinvest) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitulo.setFont(font) self.lblTitulo.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitulo.setAlignment(QtCore.Qt.AlignCenter) self.lblTitulo.setObjectName("lblTitulo") self.verticalLayout_3.addWidget(self.lblTitulo) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem) self.grp = QtWidgets.QGroupBox(wdgDisReinvest) self.grp.setTitle("") self.grp.setObjectName("grp") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.grp) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.radRe = QtWidgets.QRadioButton(self.grp) self.radRe.setChecked(True) self.radRe.setObjectName("radRe") self.horizontalLayout.addWidget(self.radRe) self.radDes = QtWidgets.QRadioButton(self.grp) self.radDes.setChecked(False) self.radDes.setObjectName("radDes") self.horizontalLayout.addWidget(self.radDes) self.verticalLayout.addLayout(self.horizontalLayout) self.groupBox = QtWidgets.QGroupBox(self.grp) self.groupBox.setObjectName("groupBox") self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.lblSimulacion = QtWidgets.QLabel(self.groupBox) self.lblSimulacion.setObjectName("lblSimulacion") self.horizontalLayout_12.addWidget(self.lblSimulacion) self.txtSimulacion = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtSimulacion.sizePolicy().hasHeightForWidth()) self.txtSimulacion.setSizePolicy(sizePolicy) self.txtSimulacion.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtSimulacion.setObjectName("txtSimulacion") self.horizontalLayout_12.addWidget(self.txtSimulacion) self.verticalLayout_2.addLayout(self.horizontalLayout_12) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.lblValor = QtWidgets.QLabel(self.groupBox) self.lblValor.setObjectName("lblValor") self.horizontalLayout_5.addWidget(self.lblValor) self.txtValorAccion = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtValorAccion.sizePolicy().hasHeightForWidth()) self.txtValorAccion.setSizePolicy(sizePolicy) self.txtValorAccion.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtValorAccion.setObjectName("txtValorAccion") self.horizontalLayout_5.addWidget(self.txtValorAccion) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.txtComision = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtComision.sizePolicy().hasHeightForWidth()) self.txtComision.setSizePolicy(sizePolicy) self.txtComision.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtComision.setObjectName("txtComision") self.horizontalLayout_4.addWidget(self.txtComision) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.horizontalLayout_11 = QtWidgets.QHBoxLayout() self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setObjectName("label_5") self.horizontalLayout_11.addWidget(self.label_5) self.txtAcciones = myQLineEdit(self.groupBox) self.txtAcciones.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAcciones.sizePolicy().hasHeightForWidth()) self.txtAcciones.setSizePolicy(sizePolicy) self.txtAcciones.setText("") self.txtAcciones.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtAcciones.setObjectName("txtAcciones") self.horizontalLayout_11.addWidget(self.txtAcciones) self.verticalLayout_2.addLayout(self.horizontalLayout_11) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.horizontalLayout_3.addWidget(self.label_2) self.txtImporte = myQLineEdit(self.groupBox) self.txtImporte.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtImporte.sizePolicy().hasHeightForWidth()) self.txtImporte.setSizePolicy(sizePolicy) self.txtImporte.setText("") self.txtImporte.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtImporte.setObjectName("txtImporte") self.horizontalLayout_3.addWidget(self.txtImporte) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout_6.addLayout(self.verticalLayout_2) self.verticalLayout.addWidget(self.groupBox) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.cmdOrder = QtWidgets.QPushButton(self.grp) self.cmdOrder.setEnabled(False) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdOrder.setIcon(icon1) self.cmdOrder.setObjectName("cmdOrder") self.horizontalLayout_2.addWidget(self.cmdOrder) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.cmd = QtWidgets.QPushButton(self.grp) self.cmd.setIcon(icon) self.cmd.setObjectName("cmd") self.horizontalLayout_2.addWidget(self.cmd) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_7.addLayout(self.verticalLayout) self.horizontalLayout_8.addWidget(self.grp) self.cmdGraph = QtWidgets.QToolButton(wdgDisReinvest) self.cmdGraph.setEnabled(False) self.cmdGraph.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/xulpymoney/report.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdGraph.setIcon(icon2) self.cmdGraph.setIconSize(QtCore.QSize(64, 64)) self.cmdGraph.setObjectName("cmdGraph") self.horizontalLayout_8.addWidget(self.cmdGraph) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem2) self.verticalLayout_3.addLayout(self.horizontalLayout_8) self.horizontalLayout_14 = QtWidgets.QHBoxLayout() self.horizontalLayout_14.setObjectName("horizontalLayout_14") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_14.addItem(spacerItem3) self.label = QtWidgets.QLabel(wdgDisReinvest) self.label.setObjectName("label") self.horizontalLayout_14.addWidget(self.label) self.cmbPrices = QtWidgets.QComboBox(wdgDisReinvest) self.cmbPrices.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToContents) self.cmbPrices.setObjectName("cmbPrices") self.horizontalLayout_14.addWidget(self.cmbPrices) self.verticalLayout_3.addLayout(self.horizontalLayout_14) self.tabOps = QtWidgets.QTabWidget(wdgDisReinvest) self.tabOps.setObjectName("tabOps") self.tab_13 = QtWidgets.QWidget() self.tab_13.setObjectName("tab_13") self.horizontalLayout_24 = QtWidgets.QHBoxLayout(self.tab_13) self.horizontalLayout_24.setObjectName("horizontalLayout_24") self.mqtwOps = mqtw(self.tab_13) self.mqtwOps.setObjectName("mqtwOps") self.horizontalLayout_24.addWidget(self.mqtwOps) self.tabOps.addTab(self.tab_13, "") self.Situac_3 = QtWidgets.QWidget() self.Situac_3.setObjectName("Situac_3") self.horizontalLayout_26 = QtWidgets.QHBoxLayout(self.Situac_3) self.horizontalLayout_26.setObjectName("horizontalLayout_26") self.mqtwCurrentOps = mqtw(self.Situac_3) self.mqtwCurrentOps.setObjectName("mqtwCurrentOps") self.horizontalLayout_26.addWidget(self.mqtwCurrentOps) self.tabOps.addTab(self.Situac_3, "") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.tab) self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.mqtwHistoricalOps = mqtwObjects(self.tab) self.mqtwHistoricalOps.setObjectName("mqtwHistoricalOps") self.horizontalLayout_9.addWidget(self.mqtwHistoricalOps) self.tabOps.addTab(self.tab, "") self.verticalLayout_3.addWidget(self.tabOps) self.horizontalLayout_21.addLayout(self.verticalLayout_3) self.retranslateUi(wdgDisReinvest) self.tabOps.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(wdgDisReinvest)
def setupUi(self, frmQuotesIBM): frmQuotesIBM.setObjectName("frmQuotesIBM") frmQuotesIBM.resize(529, 407) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmQuotesIBM.setWindowIcon(icon) self.horizontalLayout_3 = QtWidgets.QHBoxLayout(frmQuotesIBM) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lblInvestment = QtWidgets.QLabel(frmQuotesIBM) font = QtGui.QFont() font.setPointSize(12) self.lblInvestment.setFont(font) self.lblInvestment.setStyleSheet("color: rgb(0, 192, 0);") self.lblInvestment.setAlignment(QtCore.Qt.AlignCenter) self.lblInvestment.setObjectName("lblInvestment") self.verticalLayout.addWidget(self.lblInvestment) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.wdgDT = wdgDatetime(frmQuotesIBM) self.wdgDT.setFocusPolicy(QtCore.Qt.TabFocus) self.wdgDT.setObjectName("wdgDT") self.horizontalLayout_2.addWidget(self.wdgDT) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_2) self.chkNone = QtWidgets.QCheckBox(frmQuotesIBM) self.chkNone.setObjectName("chkNone") self.verticalLayout.addWidget(self.chkNone) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(frmQuotesIBM) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.txtQuote = myQLineEdit(frmQuotesIBM) self.txtQuote.setObjectName("txtQuote") self.horizontalLayout.addWidget(self.txtQuote) self.verticalLayout.addLayout(self.horizontalLayout) self.chkCanBePurged = QtWidgets.QCheckBox(frmQuotesIBM) self.chkCanBePurged.setEnabled(False) self.chkCanBePurged.setChecked(True) self.chkCanBePurged.setObjectName("chkCanBePurged") self.verticalLayout.addWidget(self.chkCanBePurged) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem2) self.buttonbox = QtWidgets.QDialogButtonBox(frmQuotesIBM) self.buttonbox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonbox.setObjectName("buttonbox") self.horizontalLayout_4.addWidget(self.buttonbox) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_4) self.horizontalLayout_3.addLayout(self.verticalLayout) self.retranslateUi(frmQuotesIBM) QtCore.QMetaObject.connectSlotsByName(frmQuotesIBM) frmQuotesIBM.setTabOrder(self.txtQuote, self.buttonbox) frmQuotesIBM.setTabOrder(self.buttonbox, self.chkNone) frmQuotesIBM.setTabOrder(self.chkNone, self.chkCanBePurged) frmQuotesIBM.setTabOrder(self.chkCanBePurged, self.wdgDT)
def setupUi(self, frmInvestmentOperationsAdd): frmInvestmentOperationsAdd.setObjectName("frmInvestmentOperationsAdd") frmInvestmentOperationsAdd.setWindowModality(QtCore.Qt.WindowModal) frmInvestmentOperationsAdd.resize(719, 557) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmInvestmentOperationsAdd.setWindowIcon(icon) frmInvestmentOperationsAdd.setModal(True) self.horizontalLayout_4 = QtWidgets.QHBoxLayout( frmInvestmentOperationsAdd) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lblTitulo = QtWidgets.QLabel(frmInvestmentOperationsAdd) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitulo.setFont(font) self.lblTitulo.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitulo.setAlignment(QtCore.Qt.AlignCenter) self.lblTitulo.setObjectName("lblTitulo") self.verticalLayout.addWidget(self.lblTitulo) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem) self.wdgDT = wdgDatetime(frmInvestmentOperationsAdd) self.wdgDT.setObjectName("wdgDT") self.horizontalLayout_8.addWidget(self.wdgDT) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_8) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.lblType = QtWidgets.QLabel(frmInvestmentOperationsAdd) self.lblType.setObjectName("lblType") self.horizontalLayout_3.addWidget(self.lblType) self.cmbTiposOperaciones = QtWidgets.QComboBox( frmInvestmentOperationsAdd) self.cmbTiposOperaciones.setObjectName("cmbTiposOperaciones") self.horizontalLayout_3.addWidget(self.cmbTiposOperaciones) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.lblShares = QtWidgets.QLabel(frmInvestmentOperationsAdd) self.lblShares.setObjectName("lblShares") self.horizontalLayout_5.addWidget(self.lblShares) self.txtAcciones = myQLineEdit(frmInvestmentOperationsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAcciones.sizePolicy().hasHeightForWidth()) self.txtAcciones.setSizePolicy(sizePolicy) self.txtAcciones.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtAcciones.setObjectName("txtAcciones") self.horizontalLayout_5.addWidget(self.txtAcciones) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.wdg2CCurrencyConversion = wdgTwoCurrencyLineEdit( frmInvestmentOperationsAdd) self.wdg2CCurrencyConversion.setObjectName("wdg2CCurrencyConversion") self.horizontalLayout.addWidget(self.wdg2CCurrencyConversion) self.cmdGuestCurrencyConversion = QtWidgets.QToolButton( frmInvestmentOperationsAdd) self.cmdGuestCurrencyConversion.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/tools-wizard.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdGuestCurrencyConversion.setIcon(icon1) self.cmdGuestCurrencyConversion.setObjectName( "cmdGuestCurrencyConversion") self.horizontalLayout.addWidget(self.cmdGuestCurrencyConversion) self.verticalLayout.addLayout(self.horizontalLayout) self.wdg2CPrice = wdgTwoCurrencyLineEdit(frmInvestmentOperationsAdd) self.wdg2CPrice.setObjectName("wdg2CPrice") self.verticalLayout.addWidget(self.wdg2CPrice) self.wdg2CTaxes = wdgTwoCurrencyLineEdit(frmInvestmentOperationsAdd) self.wdg2CTaxes.setObjectName("wdg2CTaxes") self.verticalLayout.addWidget(self.wdg2CTaxes) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.wdg2CComission = wdgTwoCurrencyLineEdit( frmInvestmentOperationsAdd) self.wdg2CComission.setObjectName("wdg2CComission") self.horizontalLayout_2.addWidget(self.wdg2CComission) self.cmdComissionCalculator = QtWidgets.QToolButton( frmInvestmentOperationsAdd) self.cmdComissionCalculator.setText("") self.cmdComissionCalculator.setIcon(icon1) self.cmdComissionCalculator.setObjectName("cmdComissionCalculator") self.horizontalLayout_2.addWidget(self.cmdComissionCalculator) self.verticalLayout.addLayout(self.horizontalLayout_2) self.wdg2CGross = wdgTwoCurrencyLineEdit(frmInvestmentOperationsAdd) self.wdg2CGross.setObjectName("wdg2CGross") self.verticalLayout.addWidget(self.wdg2CGross) self.wdg2CNet = wdgTwoCurrencyLineEdit(frmInvestmentOperationsAdd) self.wdg2CNet.setObjectName("wdg2CNet") self.verticalLayout.addWidget(self.wdg2CNet) self.cmd = QtWidgets.QPushButton(frmInvestmentOperationsAdd) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/xulpymoney/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmd.setIcon(icon2) self.cmd.setObjectName("cmd") self.verticalLayout.addWidget(self.cmd) self.horizontalLayout_4.addLayout(self.verticalLayout) self.cmdGuestCurrencyConversion.raise_() self.retranslateUi(frmInvestmentOperationsAdd) QtCore.QMetaObject.connectSlotsByName(frmInvestmentOperationsAdd)
def __init__(self, parent=None): wdgProductHistoricalChart.__init__(self, parent) self.labelBuyPrice = QLabel(self.tr("Add wanted price")) self.txtBuyPrice = myQLineEdit(self) self.cmdBuyPrice = QToolButton(self) icon = QIcon() icon.addPixmap(QPixmap(":/xulpymoney/tools-wizard.png"), QIcon.Normal, QIcon.Off) self.cmdBuyPrice.setIcon(icon) self.horizontalLayout_3.addWidget(self.labelBuyPrice) self.spacerBuyPrice = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_3.addWidget(self.txtBuyPrice) self.horizontalLayout_3.addWidget(self.cmdBuyPrice) self.horizontalLayout_3.addItem(self.spacerBuyPrice) self.cmdBuyPrice.released.connect(self.on_cmdBuyPrice_released) self.layAmounts = QHBoxLayout() self.label1 = QLabel(self) self.label1.setText(self.tr("Amounts to invest separated by ;")) self.txtAmounts = QLineEdit(self) self.txtAmounts.setText("2500;3500;8400;8400") self.labelLastOperationPercentage = QLabel(self) self.labelLastOperationPercentage.setText( self.tr("Last Operation next buy percentage")) self.txtLastOperationPercentage = myQLineEdit(self) self.txtLastOperationPercentage.setText(33) self.spacer1 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.spacer2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.spacer3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.spacer4 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.spacer5 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.spacer6 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.layAmounts.addItem(self.spacer1) self.layAmounts.addWidget(self.label1) self.layAmounts.addWidget(self.txtAmounts) self.layAmounts.addItem(self.spacer2) self.layAmounts.addWidget(self.labelLastOperationPercentage) self.layAmounts.addWidget(self.txtLastOperationPercentage) self.layAmounts.addItem(self.spacer6) self.verticalLayout.addLayout(self.layAmounts) #Add Calculator widget self.layOpportunity = QHBoxLayout() self.spacerOpportunity = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.cmdOpportunity = QPushButton(self.tr("Add Opportunity")) self.cmdOpportunity.released.connect(self.on_cmdOpportunity_released) icon1 = QIcon() icon1.addPixmap(QPixmap(":/xulpymoney/kcalc.png"), QIcon.Normal, QIcon.Off) self.cmdOpportunity.setIcon(icon1) self.layOpportunity.addItem(self.spacerOpportunity) self.layOpportunity.addWidget(self.cmdOpportunity)
def setupUi(self, frmDividendsAdd): frmDividendsAdd.setObjectName("frmDividendsAdd") frmDividendsAdd.setWindowModality(QtCore.Qt.WindowModal) frmDividendsAdd.resize(488, 493) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/dividends.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmDividendsAdd.setWindowIcon(icon) frmDividendsAdd.setModal(True) self.horizontalLayout_3 = QtWidgets.QHBoxLayout(frmDividendsAdd) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lblTitulo = QtWidgets.QLabel(frmDividendsAdd) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitulo.setFont(font) self.lblTitulo.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitulo.setAlignment(QtCore.Qt.AlignCenter) self.lblTitulo.setObjectName("lblTitulo") self.verticalLayout.addWidget(self.lblTitulo) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.wdgDT = wdgDatetime(frmDividendsAdd) self.wdgDT.setObjectName("wdgDT") self.horizontalLayout.addWidget(self.wdgDT) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.label = QtWidgets.QLabel(frmDividendsAdd) self.label.setObjectName("label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.cmb = QtWidgets.QComboBox(frmDividendsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmb.sizePolicy().hasHeightForWidth()) self.cmb.setSizePolicy(sizePolicy) self.cmb.setObjectName("cmb") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.cmb) self.lblGross = QtWidgets.QLabel(frmDividendsAdd) self.lblGross.setObjectName("lblGross") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.lblGross) self.txtBruto = myQLineEdit(frmDividendsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtBruto.sizePolicy().hasHeightForWidth()) self.txtBruto.setSizePolicy(sizePolicy) self.txtBruto.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtBruto.setObjectName("txtBruto") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.txtBruto) self.lblGrossAccount = QtWidgets.QLabel(frmDividendsAdd) self.lblGrossAccount.setObjectName("lblGrossAccount") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.lblGrossAccount) self.wdgCurrencyConversion = wdgCurrencyConversion(frmDividendsAdd) self.wdgCurrencyConversion.setObjectName("wdgCurrencyConversion") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.wdgCurrencyConversion) self.lblLiquido_4 = QtWidgets.QLabel(frmDividendsAdd) self.lblLiquido_4.setObjectName("lblLiquido_4") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.lblLiquido_4) self.txtRetencion = myQLineEdit(frmDividendsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtRetencion.sizePolicy().hasHeightForWidth()) self.txtRetencion.setSizePolicy(sizePolicy) self.txtRetencion.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtRetencion.setObjectName("txtRetencion") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.txtRetencion) self.lblLiquido_5 = QtWidgets.QLabel(frmDividendsAdd) self.lblLiquido_5.setObjectName("lblLiquido_5") self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.lblLiquido_5) self.txtDPA = myQLineEdit(frmDividendsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtDPA.sizePolicy().hasHeightForWidth()) self.txtDPA.setSizePolicy(sizePolicy) self.txtDPA.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtDPA.setObjectName("txtDPA") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.txtDPA) self.lblLiquido = QtWidgets.QLabel(frmDividendsAdd) self.lblLiquido.setObjectName("lblLiquido") self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.lblLiquido) self.txtComision = myQLineEdit(frmDividendsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtComision.sizePolicy().hasHeightForWidth()) self.txtComision.setSizePolicy(sizePolicy) self.txtComision.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtComision.setObjectName("txtComision") self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.txtComision) self.lblLiquido_7 = QtWidgets.QLabel(frmDividendsAdd) self.lblLiquido_7.setObjectName("lblLiquido_7") self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.lblLiquido_7) self.txtNeto = myQLineEdit(frmDividendsAdd) self.txtNeto.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtNeto.sizePolicy().hasHeightForWidth()) self.txtNeto.setSizePolicy(sizePolicy) self.txtNeto.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtNeto.setReadOnly(True) self.txtNeto.setObjectName("txtNeto") self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.txtNeto) self.verticalLayout.addLayout(self.formLayout) self.lblTPC = QtWidgets.QLabel(frmDividendsAdd) self.lblTPC.setText("") self.lblTPC.setAlignment(QtCore.Qt.AlignCenter) self.lblTPC.setObjectName("lblTPC") self.verticalLayout.addWidget(self.lblTPC) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.cmd = QtWidgets.QPushButton(frmDividendsAdd) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmd.setIcon(icon1) self.cmd.setObjectName("cmd") self.horizontalLayout_2.addWidget(self.cmd) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3.addLayout(self.verticalLayout) self.retranslateUi(frmDividendsAdd) QtCore.QMetaObject.connectSlotsByName(frmDividendsAdd) frmDividendsAdd.setTabOrder(self.cmb, self.txtBruto) frmDividendsAdd.setTabOrder(self.txtBruto, self.txtRetencion) frmDividendsAdd.setTabOrder(self.txtRetencion, self.txtDPA) frmDividendsAdd.setTabOrder(self.txtDPA, self.txtComision) frmDividendsAdd.setTabOrder(self.txtComision, self.cmd) frmDividendsAdd.setTabOrder(self.cmd, self.txtNeto)
def setupUi(self, frmAccountOperationsAdd): frmAccountOperationsAdd.setObjectName("frmAccountOperationsAdd") frmAccountOperationsAdd.setWindowModality(QtCore.Qt.WindowModal) frmAccountOperationsAdd.resize(566, 286) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmAccountOperationsAdd.setWindowIcon(icon) frmAccountOperationsAdd.setModal(True) self.verticalLayout_2 = QtWidgets.QVBoxLayout(frmAccountOperationsAdd) self.verticalLayout_2.setObjectName("verticalLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lblTitulo = QtWidgets.QLabel(frmAccountOperationsAdd) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitulo.setFont(font) self.lblTitulo.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitulo.setAlignment(QtCore.Qt.AlignCenter) self.lblTitulo.setObjectName("lblTitulo") self.verticalLayout.addWidget(self.lblTitulo) self.wdgDT = wdgDatetime(frmAccountOperationsAdd) self.wdgDT.setObjectName("wdgDT") self.verticalLayout.addWidget(self.wdgDT) self.groupBox = QtWidgets.QGroupBox(frmAccountOperationsAdd) self.groupBox.setTitle("") self.groupBox.setObjectName("groupBox") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.radAccounts = QtWidgets.QRadioButton(self.groupBox) self.radAccounts.setObjectName("radAccounts") self.horizontalLayout_5.addWidget(self.radAccounts) self.cmbAccounts = QtWidgets.QComboBox(self.groupBox) self.cmbAccounts.setObjectName("cmbAccounts") self.horizontalLayout_5.addWidget(self.cmbAccounts) self.verticalLayout_3.addLayout(self.horizontalLayout_5) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.radCreditCards = QtWidgets.QRadioButton(self.groupBox) self.radCreditCards.setObjectName("radCreditCards") self.horizontalLayout_6.addWidget(self.radCreditCards) self.cmbCreditCards = QtWidgets.QComboBox(self.groupBox) self.cmbCreditCards.setObjectName("cmbCreditCards") self.horizontalLayout_6.addWidget(self.cmbCreditCards) self.verticalLayout_3.addLayout(self.horizontalLayout_6) self.verticalLayout.addWidget(self.groupBox) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_2 = QtWidgets.QLabel(frmAccountOperationsAdd) self.label_2.setObjectName("label_2") self.horizontalLayout_3.addWidget(self.label_2) self.cmbConcepts = QtWidgets.QComboBox(frmAccountOperationsAdd) self.cmbConcepts.setObjectName("cmbConcepts") self.horizontalLayout_3.addWidget(self.cmbConcepts) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtWidgets.QLabel(frmAccountOperationsAdd) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.txtImporte = myQLineEdit(frmAccountOperationsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtImporte.sizePolicy().hasHeightForWidth()) self.txtImporte.setSizePolicy(sizePolicy) self.txtImporte.setObjectName("txtImporte") self.horizontalLayout.addWidget(self.txtImporte) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_4 = QtWidgets.QLabel(frmAccountOperationsAdd) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.txtComentario = QtWidgets.QLineEdit(frmAccountOperationsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtComentario.sizePolicy().hasHeightForWidth()) self.txtComentario.setSizePolicy(sizePolicy) self.txtComentario.setObjectName("txtComentario") self.horizontalLayout_4.addWidget(self.txtComentario) self.verticalLayout.addLayout(self.horizontalLayout_4) self.cmd = QtWidgets.QPushButton(frmAccountOperationsAdd) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmd.setIcon(icon1) self.cmd.setObjectName("cmd") self.verticalLayout.addWidget(self.cmd) self.verticalLayout_2.addLayout(self.verticalLayout) self.retranslateUi(frmAccountOperationsAdd) self.radAccounts.toggled['bool'].connect( self.cmbCreditCards.setDisabled) self.radCreditCards.toggled['bool'].connect( self.cmbAccounts.setDisabled) QtCore.QMetaObject.connectSlotsByName(frmAccountOperationsAdd)
def setupUi(self, frmDPSAdd): frmDPSAdd.setObjectName("frmDPSAdd") frmDPSAdd.setWindowModality(QtCore.Qt.ApplicationModal) frmDPSAdd.resize(740, 406) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/dividends.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmDPSAdd.setWindowIcon(icon) frmDPSAdd.setModal(True) self.horizontalLayout_3 = QtWidgets.QHBoxLayout(frmDPSAdd) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lbl = QtWidgets.QLabel(frmDPSAdd) font = QtGui.QFont() font.setPointSize(12) self.lbl.setFont(font) self.lbl.setStyleSheet("color: rgb(0, 192, 0);") self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout.addWidget(self.lbl) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.groupBox = QtWidgets.QGroupBox(frmDPSAdd) self.groupBox.setObjectName("groupBox") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.calendar = QtWidgets.QCalendarWidget(self.groupBox) self.calendar.setVerticalHeaderFormat( QtWidgets.QCalendarWidget.NoVerticalHeader) self.calendar.setObjectName("calendar") self.horizontalLayout_4.addWidget(self.calendar) self.horizontalLayout.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(frmDPSAdd) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.calendarPay = QtWidgets.QCalendarWidget(self.groupBox_2) self.calendarPay.setVerticalHeaderFormat( QtWidgets.QCalendarWidget.NoVerticalHeader) self.calendarPay.setObjectName("calendarPay") self.horizontalLayout_5.addWidget(self.calendarPay) self.horizontalLayout.addWidget(self.groupBox_2) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(frmDPSAdd) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.txtGross = myQLineEdit(frmDPSAdd) self.txtGross.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtGross.setObjectName("txtGross") self.horizontalLayout_2.addWidget(self.txtGross) self.verticalLayout.addLayout(self.horizontalLayout_2) self.cmd = QtWidgets.QPushButton(frmDPSAdd) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmd.setIcon(icon1) self.cmd.setObjectName("cmd") self.verticalLayout.addWidget(self.cmd) self.horizontalLayout_3.addLayout(self.verticalLayout) self.retranslateUi(frmDPSAdd) QtCore.QMetaObject.connectSlotsByName(frmDPSAdd) frmDPSAdd.setTabOrder(self.txtGross, self.cmd)
def setupUi(self, frmCreditCardsAdd): frmCreditCardsAdd.setObjectName("frmCreditCardsAdd") frmCreditCardsAdd.setWindowModality(QtCore.Qt.WindowModal) frmCreditCardsAdd.resize(426, 250) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/visa2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmCreditCardsAdd.setWindowIcon(icon) frmCreditCardsAdd.setModal(True) self.horizontalLayout_8 = QtWidgets.QHBoxLayout(frmCreditCardsAdd) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lblTitle = QtWidgets.QLabel(frmCreditCardsAdd) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lblTitle.setFont(font) self.lblTitle.setStyleSheet("color: rgb(0, 128, 0);") self.lblTitle.setAlignment(QtCore.Qt.AlignCenter) self.lblTitle.setObjectName("lblTitle") self.verticalLayout.addWidget(self.lblTitle) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_5 = QtWidgets.QLabel(frmCreditCardsAdd) self.label_5.setObjectName("label_5") self.horizontalLayout_5.addWidget(self.label_5) self.txtCreditCard = QtWidgets.QLineEdit(frmCreditCardsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtCreditCard.sizePolicy().hasHeightForWidth()) self.txtCreditCard.setSizePolicy(sizePolicy) self.txtCreditCard.setObjectName("txtCreditCard") self.horizontalLayout_5.addWidget(self.txtCreditCard) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.chkDelayed = QtWidgets.QCheckBox(frmCreditCardsAdd) self.chkDelayed.setObjectName("chkDelayed") self.horizontalLayout.addWidget(self.chkDelayed) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_7 = QtWidgets.QLabel(frmCreditCardsAdd) self.label_7.setObjectName("label_7") self.horizontalLayout_7.addWidget(self.label_7) self.txtMaximum = myQLineEdit(frmCreditCardsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtMaximum.sizePolicy().hasHeightForWidth()) self.txtMaximum.setSizePolicy(sizePolicy) self.txtMaximum.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.txtMaximum.setObjectName("txtMaximum") self.horizontalLayout_7.addWidget(self.txtMaximum) self.verticalLayout.addLayout(self.horizontalLayout_7) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_4 = QtWidgets.QLabel(frmCreditCardsAdd) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.txtNumber = myQLineEditValidatingCreditCard(frmCreditCardsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtNumber.sizePolicy().hasHeightForWidth()) self.txtNumber.setSizePolicy(sizePolicy) self.txtNumber.setObjectName("txtNumber") self.horizontalLayout_4.addWidget(self.txtNumber) self.verticalLayout.addLayout(self.horizontalLayout_4) self.cmd = QtWidgets.QPushButton(frmCreditCardsAdd) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmd.setIcon(icon1) self.cmd.setObjectName("cmd") self.verticalLayout.addWidget(self.cmd) self.horizontalLayout_8.addLayout(self.verticalLayout) self.retranslateUi(frmCreditCardsAdd) QtCore.QMetaObject.connectSlotsByName(frmCreditCardsAdd)
def setupUi(self, wdgIndexRange): wdgIndexRange.setObjectName("wdgIndexRange") wdgIndexRange.resize(747, 519) self.horizontalLayout_8 = QtWidgets.QHBoxLayout(wdgIndexRange) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.lbl = QtWidgets.QLabel(wdgIndexRange) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lbl.sizePolicy().hasHeightForWidth()) self.lbl.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.lbl.setFont(font) self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout_3.addWidget(self.lbl) self.groupBox = QtWidgets.QGroupBox(wdgIndexRange) self.groupBox.setObjectName("groupBox") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.spin = QtWidgets.QDoubleSpinBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.spin.sizePolicy().hasHeightForWidth()) self.spin.setSizePolicy(sizePolicy) self.spin.setMinimumSize(QtCore.QSize(200, 0)) self.spin.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.spin.setDecimals(1) self.spin.setSingleStep(0.1) self.spin.setProperty("value", 2.0) self.spin.setObjectName("spin") self.horizontalLayout.addWidget(self.spin) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(self.groupBox) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.txtInvertir = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtInvertir.sizePolicy().hasHeightForWidth()) self.txtInvertir.setSizePolicy(sizePolicy) self.txtInvertir.setMinimumSize(QtCore.QSize(200, 0)) self.txtInvertir.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtInvertir.setObjectName("txtInvertir") self.horizontalLayout_2.addWidget(self.txtInvertir) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.horizontalLayout_3.addWidget(self.label_4) self.txtMinimo = myQLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtMinimo.sizePolicy().hasHeightForWidth()) self.txtMinimo.setSizePolicy(sizePolicy) self.txtMinimo.setMinimumSize(QtCore.QSize(200, 0)) self.txtMinimo.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtMinimo.setObjectName("txtMinimo") self.horizontalLayout_3.addWidget(self.txtMinimo) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_5.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.cmd = QtWidgets.QPushButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmd.sizePolicy().hasHeightForWidth()) self.cmd.setSizePolicy(sizePolicy) self.cmd.setObjectName("cmd") self.verticalLayout_2.addWidget(self.cmd) self.horizontalLayout_5.addLayout(self.verticalLayout_2) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.horizontalLayout_7.addLayout(self.horizontalLayout_5) self.verticalLayout_3.addWidget(self.groupBox) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem2) self.cmbBenchmarkCurrent = QtWidgets.QComboBox(wdgIndexRange) self.cmbBenchmarkCurrent.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToContentsOnFirstShow) self.cmbBenchmarkCurrent.setObjectName("cmbBenchmarkCurrent") self.horizontalLayout_4.addWidget(self.cmbBenchmarkCurrent) self.cmdIRAnalisis = QtWidgets.QToolButton(wdgIndexRange) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/xulpymoney/books.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdIRAnalisis.setIcon(icon) self.cmdIRAnalisis.setObjectName("cmdIRAnalisis") self.horizontalLayout_4.addWidget(self.cmdIRAnalisis) self.cmdIRInsertar = QtWidgets.QToolButton(wdgIndexRange) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmdIRInsertar.setIcon(icon1) self.cmdIRInsertar.setObjectName("cmdIRInsertar") self.horizontalLayout_4.addWidget(self.cmdIRInsertar) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem3) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.mqtw = mqtw(wdgIndexRange) self.mqtw.setObjectName("mqtw") self.verticalLayout_3.addWidget(self.mqtw) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.lblTotal = QtWidgets.QLabel(wdgIndexRange) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lblTotal.sizePolicy().hasHeightForWidth()) self.lblTotal.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(8) font.setBold(True) font.setWeight(75) self.lblTotal.setFont(font) self.lblTotal.setAlignment(QtCore.Qt.AlignCenter) self.lblTotal.setObjectName("lblTotal") self.horizontalLayout_6.addWidget(self.lblTotal) self.cmbShowOptions = QtWidgets.QComboBox(wdgIndexRange) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbShowOptions.sizePolicy().hasHeightForWidth()) self.cmbShowOptions.setSizePolicy(sizePolicy) self.cmbShowOptions.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToContents) self.cmbShowOptions.setObjectName("cmbShowOptions") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/xulpymoney/eye.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmbShowOptions.addItem(icon2, "") self.cmbShowOptions.addItem("") self.cmbShowOptions.addItem("") self.cmbShowOptions.addItem("") self.cmbShowOptions.addItem("") self.horizontalLayout_6.addWidget(self.cmbShowOptions) self.verticalLayout_3.addLayout(self.horizontalLayout_6) self.horizontalLayout_8.addLayout(self.verticalLayout_3) self.actionTop = QtWidgets.QAction(wdgIndexRange) self.actionTop.setObjectName("actionTop") self.actionMiddle = QtWidgets.QAction(wdgIndexRange) self.actionMiddle.setObjectName("actionMiddle") self.actionBottom = QtWidgets.QAction(wdgIndexRange) self.actionBottom.setObjectName("actionBottom") self.retranslateUi(wdgIndexRange) QtCore.QMetaObject.connectSlotsByName(wdgIndexRange)
def setupUi(self, frmEstimationsAdd): frmEstimationsAdd.setObjectName("frmEstimationsAdd") frmEstimationsAdd.setWindowModality(QtCore.Qt.ApplicationModal) frmEstimationsAdd.resize(634, 177) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/images/dinero.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmEstimationsAdd.setWindowIcon(icon) frmEstimationsAdd.setModal(True) self.horizontalLayout_4 = QtWidgets.QHBoxLayout(frmEstimationsAdd) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.lbl = QtWidgets.QLabel(frmEstimationsAdd) font = QtGui.QFont() font.setPointSize(12) self.lbl.setFont(font) self.lbl.setStyleSheet("color: rgb(0, 192, 0);") self.lbl.setAlignment(QtCore.Qt.AlignCenter) self.lbl.setObjectName("lbl") self.verticalLayout.addWidget(self.lbl) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(frmEstimationsAdd) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.txtYear = QtWidgets.QLineEdit(frmEstimationsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtYear.sizePolicy().hasHeightForWidth()) self.txtYear.setSizePolicy(sizePolicy) self.txtYear.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtYear.setObjectName("txtYear") self.horizontalLayout.addWidget(self.txtYear) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.lblEstimation = QtWidgets.QLabel(frmEstimationsAdd) self.lblEstimation.setObjectName("lblEstimation") self.horizontalLayout_2.addWidget(self.lblEstimation) self.txtDPA = myQLineEdit(frmEstimationsAdd) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtDPA.sizePolicy().hasHeightForWidth()) self.txtDPA.setSizePolicy(sizePolicy) self.txtDPA.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.txtDPA.setObjectName("txtDPA") self.horizontalLayout_2.addWidget(self.txtDPA) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_3 = QtWidgets.QLabel(frmEstimationsAdd) self.label_3.setObjectName("label_3") self.horizontalLayout_3.addWidget(self.label_3) self.cmbSource = QtWidgets.QComboBox(frmEstimationsAdd) self.cmbSource.setObjectName("cmbSource") self.horizontalLayout_3.addWidget(self.cmbSource) self.verticalLayout.addLayout(self.horizontalLayout_3) self.cmd = QtWidgets.QPushButton(frmEstimationsAdd) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/xulpymoney/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cmd.setIcon(icon1) self.cmd.setObjectName("cmd") self.verticalLayout.addWidget(self.cmd) self.horizontalLayout_4.addLayout(self.verticalLayout) self.retranslateUi(frmEstimationsAdd) QtCore.QMetaObject.connectSlotsByName(frmEstimationsAdd) frmEstimationsAdd.setTabOrder(self.txtDPA, self.txtYear) frmEstimationsAdd.setTabOrder(self.txtYear, self.cmbSource) frmEstimationsAdd.setTabOrder(self.cmbSource, self.cmd)