Skip to content

Commit

Permalink
[ADD] total active loops amount.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklix committed Jun 28, 2021
1 parent 8bb1eee commit f76ef26
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
14 changes: 10 additions & 4 deletions src/main/python/guiDesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

# Form implementation generated from reading ui file 'guiDesigner.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.

# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

Expand Down Expand Up @@ -1984,6 +1982,12 @@ def setupUi(self, MainWindow):
self.tableWidget_3.setColumnCount(0)
self.tableWidget_3.setRowCount(0)
self.gridLayout_33.addWidget(self.tableWidget_3, 0, 0, 1, 2)
self.label_86 = QtWidgets.QLabel(self.groupBox_16)
self.label_86.setObjectName("label_86")
self.gridLayout_33.addWidget(self.label_86, 1, 0, 1, 1)
self.label_87 = QtWidgets.QLabel(self.groupBox_16)
self.label_87.setObjectName("label_87")
self.gridLayout_33.addWidget(self.label_87, 1, 1, 1, 1)
self.horizontalLayout_47.addWidget(self.groupBox_16)
self.verticalLayout_15.addLayout(self.horizontalLayout_47)
self.horizontalLayout_48 = QtWidgets.QHBoxLayout()
Expand Down Expand Up @@ -2577,6 +2581,8 @@ def retranslateUi(self, MainWindow):
self.label_17.setText(_translate("MainWindow", "ISSUER PK"))
self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_11), _translate("MainWindow", "LOOP REQUEST CHECK"))
self.groupBox_16.setTitle(_translate("MainWindow", "Active Loops"))
self.label_86.setText(_translate("MainWindow", "Total Amount in Active loops"))
self.label_87.setText(_translate("MainWindow", "0"))
self.pushButton_34.setText(_translate("MainWindow", "Refresh"))
self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_6), _translate("MainWindow", "ACTIVE LOOPS"))
self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_10), _translate("MainWindow", "CREDIT TRANSACTIONS "))
Expand Down
20 changes: 17 additions & 3 deletions src/main/python/guiDesigner.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1135</width>
<height>805</height>
<height>986</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -1073,7 +1073,7 @@ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgb
<string notr="true">color: rgb(238, 238, 236);</string>
</property>
<property name="currentIndex">
<number>0</number>
<number>3</number>
</property>
<property name="movable">
<bool>false</bool>
Expand Down Expand Up @@ -2693,7 +2693,7 @@ BACK</string>
<enum>QTabWidget::North</enum>
</property>
<property name="currentIndex">
<number>0</number>
<number>4</number>
</property>
<widget class="QWidget" name="tab_12">
<attribute name="title">
Expand Down Expand Up @@ -4192,6 +4192,20 @@ color: rgb(0, 0, 0);</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_86">
<property name="text">
<string>Total Amount in Active loops</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="label_87">
<property name="text">
<string>0</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/main/python/mainApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ def changingInformationActiveList(self, val):
amount = QTableWidgetItem(str(item_json["myAmountLockedInLoop"]))
self.tableWidget_3.setItem(row_index, 1, amount)
row_index = row_index + 1

self.label_87.setText(str(json_array['TotalLockedInLoop']))
self.loading_screen.stop_animation()

def buttonClickActiveLoops(self):
Expand Down

0 comments on commit f76ef26

Please sign in to comment.