blob: df4ad0ee6d9d811206c5cb889647e1f6955c1ce9 (
plain) (
blame)
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
|
from PyQt5 import QtCore , QtWidgets , QtGui
from PyQt5.QtGui import QMovie
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtCore import Qt , QTimer , QTime , QDate
from ZaraUi import Ui_MainWindow
import sys
import Main
class MainThread(QThread):
def __init__(self):
super(MainThread,self).__init__()
def run(self):
self.Task_Gui()
def Task_Gui(self):
Main.TaskExe()
startFunctions = MainThread()
class Gui_Start(QMainWindow):
def __init__(self):
super().__init__()
self.zara_ui = Ui_MainWindow()
self.zara_ui.setupUi(self)
self.zara_ui.pushButton.clicked.connect(self.startFunc)
self.zara_ui.pushButton_2.clicked.connect(self.close)
def startFunc(self):
self.zara_ui.movies = QtGui.QMovie("../../../../2 - Python/3 - Materials/G.U.I Material/B.G/1.gif")
self.zara_ui.Gif.setMovie(self.zara_ui.movies)
self.zara_ui.movies.start()
self.zara_ui.movies_2 = QtGui.QMovie("../../../../2 - Python/3 - Materials/G.U.I Material/VoiceReg/gui (4).gif")
self.zara_ui.Gif_2.setMovie(self.zara_ui.movies_2)
self.zara_ui.movies_2.start()
self.zara_ui.movies_3 = QtGui.QMovie("../../../../2 - Python/3 - Materials/G.U.I Material/ExtraGui/initial.gif")
self.zara_ui.Gif_3.setMovie(self.zara_ui.movies_3)
self.zara_ui.movies_3.start()
timer = QTimer(self)
timer.timeout.connect(self.showtime)
timer.start(1000)
startFunctions.start()
def showtime(self):
current_time = QTime.currentTime()
label_time = current_time.toString("hh:mm:ss")
labbel = " Time : " + label_time
self.zara_ui.textBrowser.setText(labbel)
Gui_App = QApplication(sys.argv)
Gui_Zara = Gui_Start()
Gui_Zara.show()
exit(Gui_App.exec_())
|