-
Notifications
You must be signed in to change notification settings - Fork 0
/
FCFS.py
80 lines (73 loc) · 4.3 KB
/
FCFS.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'FCFS.ui'
#
# Created by: PyQt5 UI code generator 5.15.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.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setEnabled(True)
MainWindow.resize(872, 859)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("scheduler (1).png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setAutoFillBackground(False)
MainWindow.setStyleSheet("background-color: white;")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(150, 50, 651, 101))
self.label.setLayoutDirection(QtCore.Qt.RightToLeft)
self.label.setAutoFillBackground(False)
self.label.setStyleSheet("font: 16pt \"Montserrat\"; color: black ; font-weight: bold;\n"
" font-weight:bold;")
self.label.setObjectName("label")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setGeometry(QtCore.QRect(450, 260, 411, 71))
self.label_4.setAutoFillBackground(False)
self.label_4.setStyleSheet("font: 12pt \"Montserrat\"; color: black; font-weight: bold;")
self.label_4.setObjectName("label_4")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setGeometry(QtCore.QRect(60, 280, 341, 41))
self.label_3.setLayoutDirection(QtCore.Qt.RightToLeft)
self.label_3.setAutoFillBackground(False)
self.label_3.setStyleSheet("font: 12pt \"Montserrat\"; color: black; font-weight: bold;")
self.label_3.setObjectName("label_3")
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(60, 150, 231, 101))
self.label_5.setAutoFillBackground(False)
self.label_5.setStyleSheet("font: 12pt \"Montserrat\"; color: black; font-weight: bold;")
self.label_5.setObjectName("label_5")
self.textEdit_2 = QtWidgets.QTextEdit(self.centralwidget)
self.textEdit_2.setGeometry(QtCore.QRect(60, 330, 291, 371))
self.textEdit_2.setStyleSheet("border: 2px solid black; font: 75 20pt")
self.textEdit_2.setObjectName("textEdit_2")
self.textEdit_3 = QtWidgets.QTextEdit(self.centralwidget)
self.textEdit_3.setGeometry(QtCore.QRect(450, 330, 291, 371))
self.textEdit_3.setStyleSheet("border: 2px solid black; font: 75 20pt")
self.textEdit_3.setObjectName("textEdit_3")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(280, 730, 271, 91))
self.pushButton.setStyleSheet("font: 14pt \"Montserrat\"; font-weight: bold; color:#FF5757; font-size: 14;")
self.pushButton.setObjectName("pushButton")
self.textEdit_4 = QtWidgets.QTextEdit(self.centralwidget)
self.textEdit_4.setGeometry(QtCore.QRect(300, 180, 91, 61))
self.textEdit_4.setStyleSheet("border: 2px solid black; font: 75 20pt")
self.textEdit_4.setObjectName("textEdit_4")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "CPU Job Scheduler"))
self.label.setText(_translate("MainWindow", "PLEASE ENTER THE FOLLOWING INPUTS:"))
self.label_4.setText(_translate("MainWindow", "Burst Time of Each Process"))
self.label_3.setText(_translate("MainWindow", "Arrival time of Each Process"))
self.label_5.setText(_translate("MainWindow", "Number of Processes"))
self.pushButton.setText(_translate("MainWindow", "RUN"))