-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuiqt_help.py
More file actions
133 lines (124 loc) · 15.8 KB
/
Copy pathuiqt_help.py
File metadata and controls
133 lines (124 loc) · 15.8 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\Quorra\Python-Projects\Sorting-Algorithms-Visualisation\qt_designer_ozan\help_uiqt.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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.resize(1000, 420)
MainWindow.setMinimumSize(QtCore.QSize(1000, 420))
MainWindow.setMaximumSize(QtCore.QSize(1000, 420))
MainWindow.setStyleSheet("\n"
"background-color: qlineargradient(spread:pad, x1:0, y1:0.193545, x2:1, y2:0.676, stop:0 rgba(30, 187, 114, 255), stop:1 rgba(122, 89, 196, 255));\n"
"")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label_kthsmallestelement = QtWidgets.QTabWidget(self.centralwidget)
self.label_kthsmallestelement.setGeometry(QtCore.QRect(0, 0, 1011, 411))
self.label_kthsmallestelement.setStyleSheet("font: 9pt \"MS Shell Dlg 2\";")
self.label_kthsmallestelement.setTabShape(QtWidgets.QTabWidget.Rounded)
self.label_kthsmallestelement.setUsesScrollButtons(True)
self.label_kthsmallestelement.setObjectName("label_kthsmallestelement")
self.help_sort = QtWidgets.QWidget()
self.help_sort.setObjectName("help_sort")
self.label_sort_algorithms = QtWidgets.QLabel(self.help_sort)
self.label_sort_algorithms.setGeometry(QtCore.QRect(20, 0, 961, 361))
self.label_sort_algorithms.setStyleSheet("background-color: rgba(232, 232, 232,0);\n"
"color:black;\n"
"")
self.label_sort_algorithms.setObjectName("label_sort_algorithms")
self.label_kthsmallestelement.addTab(self.help_sort, "")
self.help_time = QtWidgets.QWidget()
self.help_time.setObjectName("help_time")
self.label_timecomparison = QtWidgets.QLabel(self.help_time)
self.label_timecomparison.setGeometry(QtCore.QRect(0, 0, 1021, 311))
self.label_timecomparison.setStyleSheet("background-color: rgba(232, 232, 232,0);\n"
"color:black;\n"
"")
self.label_timecomparison.setObjectName("label_timecomparison")
self.label_kthsmallestelement.addTab(self.help_time, "")
self.help_fibonacci = QtWidgets.QWidget()
self.help_fibonacci.setObjectName("help_fibonacci")
self.label_fibonacci = QtWidgets.QLabel(self.help_fibonacci)
self.label_fibonacci.setGeometry(QtCore.QRect(0, 0, 941, 311))
self.label_fibonacci.setStyleSheet("background-color: rgb(232, 232, 232);\n"
"")
self.label_fibonacci.setText("")
self.label_fibonacci.setObjectName("label_fibonacci")
self.label = QtWidgets.QLabel(self.help_fibonacci)
self.label.setGeometry(QtCore.QRect(0, 0, 991, 341))
self.label.setStyleSheet("color:black;")
self.label.setObjectName("label")
self.label_kthsmallestelement.addTab(self.help_fibonacci, "")
self.help_binary = QtWidgets.QWidget()
self.help_binary.setObjectName("help_binary")
self.label_binarysearch = QtWidgets.QLabel(self.help_binary)
self.label_binarysearch.setGeometry(QtCore.QRect(0, 20, 1001, 351))
self.label_binarysearch.setStyleSheet("background-color: rgba(232, 232, 232,0);\n"
"color:black;\n"
"")
self.label_binarysearch.setObjectName("label_binarysearch")
self.label_kthsmallestelement.addTab(self.help_binary, "")
self.help_rand_sel = QtWidgets.QWidget()
self.help_rand_sel.setObjectName("help_rand_sel")
self.label_7 = QtWidgets.QLabel(self.help_rand_sel)
self.label_7.setGeometry(QtCore.QRect(0, 0, 1001, 371))
self.label_7.setStyleSheet("background-color: rgba(232, 232, 232,0);\n"
"color:black;\n"
"")
self.label_7.setObjectName("label_7")
self.label_kthsmallestelement.addTab(self.help_rand_sel, "")
self.help_matrix = QtWidgets.QWidget()
self.help_matrix.setObjectName("help_matrix")
self.label_4 = QtWidgets.QLabel(self.help_matrix)
self.label_4.setGeometry(QtCore.QRect(10, 20, 991, 351))
self.label_4.setStyleSheet("background-color: rgba(232, 232, 232,0);\n"
"color:black;\n"
"")
self.label_4.setObjectName("label_4")
self.label_kthsmallestelement.addTab(self.help_matrix, "")
self.about_me = QtWidgets.QWidget()
self.about_me.setObjectName("about_me")
self.label_aboutme = QtWidgets.QLabel(self.about_me)
self.label_aboutme.setGeometry(QtCore.QRect(0, 40, 981, 281))
self.label_aboutme.setStyleSheet("background-color: rgba(232, 232, 232,0);\n"
"color:black;\n"
"")
self.label_aboutme.setObjectName("label_aboutme")
self.label_kthsmallestelement.addTab(self.about_me, "")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.label_kthsmallestelement.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Help"))
self.label_sort_algorithms.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">-If you want the array you want to create to be the same array when the same parameters are entered, check the "Seed Array" option.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Enter "Array Size" and Range values for the array you want to create and click the "Create Array" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-If you want to enter the array yourself, press the "Enter Array" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-If you want to create an array without entering these values, click the "Set Default Values" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Check the "Non-Repeating Array" option if you do not want the array to have repeating numbers in the array you want to create.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-After creating the array, click on the algorithm you want to sort.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can stop the animation by pressing the "Stop" button, press the "Skip" button to see the sorted array.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-During the animation, you can adjust the speed with the slider named "Speed".</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-With the menubar at the top of the page, you can transfer the arrays in the "txt", "csv" and "xlxs" files on your computer to the program or save the arrays you created in the same formats to your computer.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can activate it by calling the names of the buttons by pressing the microphone icon.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-With the "Clear" button, you can clear the data on the page.</span></p></body></html>"))
self.label_kthsmallestelement.setTabText(self.label_kthsmallestelement.indexOf(self.help_sort), _translate("MainWindow", "Sorting Algorithms"))
self.label_timecomparison.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">-Click the "Compare all" button to compare the times of all algorithms and to draw their graph according to the number of inputs.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-To draw the time computational complexity graph of specific algorithms, select the algorithms and </span></p><p align=\"center\"><span style=\" font-size:12pt;\">click the "Compare Choosen Algorithms" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can activate it by calling the names of the buttons by pressing the microphone icon.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-With the "Clear" button, you can clear the data on the page.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Press the "Back To Menu" button for back to menu.</span></p></body></html>"))
self.label_kthsmallestelement.setTabText(self.label_kthsmallestelement.indexOf(self.help_time), _translate("MainWindow", "Time Comparison"))
self.label.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">-Enter the number of fibonacci number you want to find.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Click on the "Find nth Fibonacci Number" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Your result and an animated bar graph will appear will appear on the program screen until the order you want.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can activate it by calling the names of the buttons by pressing the microphone icon.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-With the "Clear" button, you can clear the data on the page.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Press the "Back To Menu" button for back to menu.</span></p></body></html>"))
self.label_kthsmallestelement.setTabText(self.label_kthsmallestelement.indexOf(self.help_fibonacci), _translate("MainWindow", "Fibonacci Number"))
self.label_binarysearch.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">-Select the "Create an Array Yourself" option if you want to create the array yourself, and select the "Create Random Array" option if </span></p><p align=\"center\"><span style=\" font-size:12pt;\">you want the program to generate randomly.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Enter "Array Size" and "Range" values for the array you want to create and click the "Random Array" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-If you want to create an array without entering these values, click the</span></p><p align=\"center\"><span style=\" font-size:12pt;\">"Set Default Values" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-If you want to create the array yourself, click the "Create Array" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Sort the resulting array by clicking the "Sort" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Enter the array element whose index you are searching for.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can activate it by calling the names of the buttons by pressing the microphone icon.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can see the bar graph of the first array created and the bar graph of the array that shows the array element you are looking for.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-With the "Clear" button, you can clear the data on the page.</span></p></body></html>"))
self.label_kthsmallestelement.setTabText(self.label_kthsmallestelement.indexOf(self.help_binary), _translate("MainWindow", "Binary Search"))
self.label_7.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">-Select the "Create an Array Yourself" option if you want to create the array yourself, and select the "Create Random Array" </span></p><p align=\"center\"><span style=\" font-size:12pt;\">option if you want the program to generate randomly.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Enter "Array Size" and "Range" values for the array you want to create and click the "Random Array" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-If you want to create an array without entering these values, click the "Set Default Values" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-If you want to create the array yourself, click the "Create Array" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Sort the resulting array by clicking the "Sort" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Enter a "k" value for see the k\'th smallest element in the array.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can see the bar graph of the first array created and the bar graph of the array that shows the array element you are looking for.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can activate it by calling the names of the buttons by pressing the microphone icon.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-With the "Clear" button, you can clear the data on the page.</span></p></body></html>"))
self.label_kthsmallestelement.setTabText(self.label_kthsmallestelement.indexOf(self.help_rand_sel), _translate("MainWindow", "Kth Smallest Element"))
self.label_4.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">-To create the matrix as random, first enter the row and column of Matrix 1.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">According to the program multiplication rules, the row number of Matrix 2 </span></p><p align=\"center\"><span style=\" font-size:12pt;\">equals the number of columns of Matrix 1. Then enter the column </span></p><p align=\"center\"><span style=\" font-size:12pt;\">number of Matrix 2.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Click the "Multiply" button to see the result matrix in the Result Matrix table.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can use operations such as determinant, inverse matrix, rank, transpose for the first matrix </span></p><p align=\"center\"><span style=\" font-size:12pt;\">by pressing the first "Create Matrix" button. You can see the same actions for the second matrix by pressing the second </span></p><p align=\"center\"><span style=\" font-size:12pt;\">"Create Matrix" button.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-You can activate it by calling the names of the buttons by pressing the microphone icon.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-Before the click the "Enter Matrix" button to enter the matrix manually,fill in the Matrix 1 and Matrix 2\'s row and column values.</span></p><p align=\"center\"><span style=\" font-size:12pt;\">-With the "Clear" button, you can clear the data on the page.<br/></span></p></body></html>"))
self.label_kthsmallestelement.setTabText(self.label_kthsmallestelement.indexOf(self.help_matrix), _translate("MainWindow", "Matrix Multiplication"))
self.label_aboutme.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">This project created by Orhan Ozan Yıldız.</span></p></body></html>"))
self.label_kthsmallestelement.setTabText(self.label_kthsmallestelement.indexOf(self.about_me), _translate("MainWindow", "About Me"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())