-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.py
More file actions
53 lines (41 loc) · 1.59 KB
/
interface.py
File metadata and controls
53 lines (41 loc) · 1.59 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
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow, QInputDialog, QLineEdit
from PyQt5 import QtCore
import sys
import os
import copy_dataset
import write_csv
import random_numbers_dataset
import iter
class Interface(QMainWindow):
def __init__(self):
super(Interface, self).__init__()
self.setWindowTitle("Lab 3")
# # self.setGeometry(300, 300, 400, 300)
# self.setGeometry(0, 0, 650, 400)
self.move(700, 300)
self.resize(600, 500)
self.new_text = QtWidgets.QLabel("ss", self)
self.w_text = QLineEdit(self)
self.text = QtWidgets.QLabel("Программа", self)
self.text.move(170, 50)
# self.text.setAlignment(QtCore.Qt.AlignLeft)
self.text.adjustSize()
self.button1 = QtWidgets.QPushButton("Аннотация", self)
self.button1.move(78, 300)
self.button1.clicked.connect(self.click_csv)
self.button1.adjustSize()
self.button2 = QtWidgets.QPushButton("Копирование", self)
self.button2.move(150, 300)
self.button2.clicked.connect(self.click_copy)
self.button2.adjustSize()
self.button3 = QtWidgets.QPushButton("Копирование со случайными номерами", self)
self.button3.move(222, 300)
self.button3.clicked.connect(self.click_rand)
self.button3.adjustSize()
def create():
app = QApplication(sys.argv)
w = Interface()
w.show()
sys.exit(app.exec_())
create()