forked from trancenoid/Store_Management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bg.py
107 lines (101 loc) · 5.87 KB
/
bg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'billGenerator.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_BILL(object):
def setupUi(self, BILL):
BILL.setObjectName("BILL")
BILL.resize(809, 580)
self.centralwidget = QtWidgets.QWidget(BILL)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(160, 30, 441, 91))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(40, 150, 31, 51))
self.label_2.setObjectName("label_2")
self.itemComboBox = QtWidgets.QComboBox(self.centralwidget)
self.itemComboBox.setGeometry(QtCore.QRect(80, 160, 201, 31))
self.itemComboBox.setObjectName("itemComboBox")
self.itemComboBox.addItem("")
self.itemComboBox.addItem("")
self.getDetailBtn = QtWidgets.QPushButton(self.centralwidget)
self.getDetailBtn.setGeometry(QtCore.QRect(300, 160, 121, 31))
self.getDetailBtn.setObjectName("getDetailBtn")
self.AddItemBtn = QtWidgets.QPushButton(self.centralwidget)
self.AddItemBtn.setGeometry(QtCore.QRect(640, 160, 121, 31))
self.AddItemBtn.setObjectName("AddItemBtn")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setGeometry(QtCore.QRect(20, 230, 161, 31))
self.label_3.setObjectName("label_3")
self.itmNamelbl = QtWidgets.QLabel(self.centralwidget)
self.itmNamelbl.setGeometry(QtCore.QRect(250, 230, 91, 21))
self.itmNamelbl.setObjectName("itmNamelbl")
self.ItemPricelbl = QtWidgets.QLabel(self.centralwidget)
self.ItemPricelbl.setGeometry(QtCore.QRect(390, 230, 111, 21))
self.ItemPricelbl.setObjectName("ItemPricelbl")
self.ItemQtLbl = QtWidgets.QLabel(self.centralwidget)
self.ItemQtLbl.setGeometry(QtCore.QRect(530, 220, 111, 41))
self.ItemQtLbl.setObjectName("ItemQtLbl")
self.itemIdLbl = QtWidgets.QLabel(self.centralwidget)
self.itemIdLbl.setGeometry(QtCore.QRect(170, 230, 55, 21))
self.itemIdLbl.setObjectName("itemIdLbl")
self.label_8 = QtWidgets.QLabel(self.centralwidget)
self.label_8.setGeometry(QtCore.QRect(450, 160, 81, 31))
self.label_8.setObjectName("label_8")
self.quantitySpinBox = QtWidgets.QSpinBox(self.centralwidget)
self.quantitySpinBox.setGeometry(QtCore.QRect(541, 161, 71, 31))
self.quantitySpinBox.setObjectName("quantitySpinBox")
self.label_9 = QtWidgets.QLabel(self.centralwidget)
self.label_9.setGeometry(QtCore.QRect(20, 500, 131, 41))
self.label_9.setObjectName("label_9")
self.custIdTextEdit = QtWidgets.QTextEdit(self.centralwidget)
self.custIdTextEdit.setGeometry(QtCore.QRect(100, 500, 161, 31))
self.custIdTextEdit.setObjectName("custIdTextEdit")
self.custRegLbl = QtWidgets.QLabel(self.centralwidget)
self.custRegLbl.setGeometry(QtCore.QRect(20, 550, 81, 21))
self.custRegLbl.setObjectName("custRegLbl")
self.label_11 = QtWidgets.QLabel(self.centralwidget)
self.label_11.setGeometry(QtCore.QRect(350, 500, 91, 41))
self.label_11.setObjectName("label_11")
self.totalAmtLbl = QtWidgets.QLabel(self.centralwidget)
self.totalAmtLbl.setGeometry(QtCore.QRect(450, 500, 101, 41))
self.totalAmtLbl.setObjectName("totalAmtLbl")
self.GenBillBtn = QtWidgets.QPushButton(self.centralwidget)
self.GenBillBtn.setGeometry(QtCore.QRect(610, 500, 121, 41))
self.GenBillBtn.setObjectName("GenBillBtn")
self.Bill = QtWidgets.QTableWidget(self.centralwidget)
self.Bill.setGeometry(QtCore.QRect(170, 270, 511, 192))
self.Bill.setColumnCount(5)
self.Bill.setObjectName("Bill")
self.Bill.setRowCount(0)
self.regBtn = QtWidgets.QPushButton(self.centralwidget)
self.regBtn.setGeometry(QtCore.QRect(110, 550, 81, 23))
self.regBtn.setObjectName("regBtn")
BILL.setCentralWidget(self.centralwidget)
self.retranslateUi(BILL)
QtCore.QMetaObject.connectSlotsByName(BILL)
def retranslateUi(self, BILL):
_translate = QtCore.QCoreApplication.translate
BILL.setWindowTitle(_translate("BILL", "MainWindow"))
self.label.setText(_translate("BILL", "<html><head/><body><p align=\"center\"><span style=\" font-size:24pt;\">BILLER</span></p></body></html>"))
self.label_2.setText(_translate("BILL", "Item "))
self.itemComboBox.setItemText(0, _translate("BILL", "soap"))
self.itemComboBox.setItemText(1, _translate("BILL", "shampoo"))
self.getDetailBtn.setText(_translate("BILL", "Get Details"))
self.AddItemBtn.setText(_translate("BILL", "Add"))
self.label_3.setText(_translate("BILL", "<html><head/><body><p><span style=\" font-size:14pt;\">ITEM DETAIL</span></p></body></html>"))
self.itmNamelbl.setText(_translate("BILL", "NAME : SOAP"))
self.ItemPricelbl.setText(_translate("BILL", " RS.20 PER UNIT"))
self.ItemQtLbl.setText(_translate("BILL", "QUANTITY : 320"))
self.itemIdLbl.setText(_translate("BILL", "ID : A101"))
self.label_8.setText(_translate("BILL", "QUANTITY"))
self.label_9.setText(_translate("BILL", "CUSTOMER ID"))
self.custRegLbl.setText(_translate("BILL", "New Customer ?"))
self.label_11.setText(_translate("BILL", "Total Amount"))
self.totalAmtLbl.setText(_translate("BILL", "Rs. 2400"))
self.GenBillBtn.setText(_translate("BILL", "Generate Bill"))
self.regBtn.setText(_translate("BILL", "Register Here"))