-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetailedwindow.py
44 lines (35 loc) · 1.31 KB
/
detailedwindow.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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# =============================================================================
# Created By : Huy Luong
# Created Date: 07.05.2019
# License: GNU GPL
# =============================================================================
# Imports
from detailedwindow_gui import Ui_detailedwindow
from PyQt5 import QtWidgets
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
import sys, os
# =============================================================================
class Detailedwindow(Ui_detailedwindow):
def __init__(self, input_window, matcheswindow_object, int):
super().__init__()
self.input_window = input_window
self.setupUi(input_window)
self.matchimg = matcheswindow_object.matchresults[int]
self.matcheswindow_object = matcheswindow_object
self.label.setPixmap(QPixmap(self.matchimg))
self.backBtn.clicked.connect(self.backtomatches)
def backtomatches(self):
self.input_window.close()
self.matcheswindow_object.input_window.show()
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QMainWindow()
main = Detailedwindow(window)
window.show()
sys.exit(app.exec_())