-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecimEkrani_python.py
78 lines (74 loc) · 3.37 KB
/
secimEkrani_python.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
from PyQt5 import QtCore, QtGui, QtWidgets
from wikipedi_python import Ui_wikipedi
from metin_python import Ui_metin
class Ui_MainWindow(object):
def openWindow_wikipedi(self):
self.window = QtWidgets.QMainWindow()
self.ui = Ui_wikipedi()
self.ui.setupUi(self.window)
self.window.show()
def openWindow_metin(self):
self.window = QtWidgets.QMainWindow()
self.ui = Ui_metin()
self.ui.setupUi(self.window)
self.window.show()
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(308, 107)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.radioButton = QtWidgets.QRadioButton(self.centralwidget, clicked = lambda: self.openWindow_wikipedi())
self.radioButton.setGeometry(QtCore.QRect(30, 50, 111, 21))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.radioButton.setFont(font)
self.radioButton.setStyleSheet("")
self.radioButton.setObjectName("radioButton")
self.radioButton_2 = QtWidgets.QRadioButton(self.centralwidget, clicked = lambda: self.openWindow_metin())
self.radioButton_2.setGeometry(QtCore.QRect(200, 50, 81, 21))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.radioButton_2.setFont(font)
self.radioButton_2.setObjectName("radioButton_2")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(20, 20, 281, 20))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(170, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(170, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.label.setPalette(palette)
font = QtGui.QFont()
font.setPointSize(10)
font.setItalic(True)
self.label.setFont(font)
self.label.setObjectName("label")
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", "Metin Özetleme Uygulaması"))
self.radioButton.setText(_translate("MainWindow", "WIKIPEDIA"))
self.radioButton_2.setText(_translate("MainWindow", "METİN"))
self.label.setText(_translate("MainWindow", "Lütfen özetleme yapmak istediğiniz türü seçiniz"))
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_())