-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
31 lines (25 loc) · 822 Bytes
/
Copy pathtest.py
File metadata and controls
31 lines (25 loc) · 822 Bytes
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
import sys
from PyQt6.QtWidgets import QMainWindow, QApplication
import PyQt6.QtWidgets as widget
from components.book_entry import BookEntry
class Main(QMainWindow):
def __init__(self):
super().__init__()
self._createUI()
def _createUI(self):
central = widget.QWidget()
layout = widget.QHBoxLayout()
central.setLayout(layout)
self.button = widget.QPushButton()
self.button.setText("HIIII")
self.button2 = widget.QPushButton()
self.button2.setText("YEET")
self.button3 = widget.QPushButton("HOLAA!!")
layout.addWidget(self.button)
layout.addWidget(self.button2)
layout.addWidget(BookEntry())
self.setCentralWidget(central)
app = QApplication(sys.argv)
window = Main()
window.show()
app.exec()