-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAnalROCUI.py
48 lines (36 loc) · 1.59 KB
/
AnalROCUI.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
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 15 15:57:14 2021
@author: hcji
"""
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow, QGridLayout, QMessageBox, QMenu
from AnalROC import Ui_Form
from MakeFigure import MakeFigure
from matplotlib.backends.backend_qt5 import NavigationToolbar2QT as NavigationToolbar
class AnalROCUI(QtWidgets.QWidget, Ui_Form):
def __init__(self, parent=None):
super(AnalROCUI, self).__init__(parent)
self.setupUi(self)
self.setWindowTitle("Protein pairs analysis")
self.figureROC = MakeFigure(5, 5)
self.figureGroup1 = MakeFigure(5, 5)
self.figureGroup2 = MakeFigure(5, 5)
self.figureROC_ntb = NavigationToolbar(self.figureGroup1, self)
self.figureGroup1_ntb = NavigationToolbar(self.figureGroup1, self)
self.figureGroup2_ntb = NavigationToolbar(self.figureGroup2, self)
self.gridlayoutROC = QGridLayout(self.groupBox)
self.gridlayoutBox1 = QGridLayout(self.groupBox_1)
self.gridlayoutBox2 = QGridLayout(self.groupBox_2)
self.gridlayoutROC.addWidget(self.figureROC)
self.gridlayoutROC.addWidget(self.figureROC_ntb)
self.gridlayoutBox1.addWidget(self.figureGroup1)
self.gridlayoutBox1.addWidget(self.figureGroup1_ntb)
self.gridlayoutBox2.addWidget(self.figureGroup2)
self.gridlayoutBox2.addWidget(self.figureGroup2_ntb)
if __name__ == '__main__':
import sys
app = QApplication(sys.argv)
ui = AnalROCUI()
ui.show()
sys.exit(app.exec_())