Compare commits
No commits in common. "b84e21a2071878537f8cc2aa26c54dd3a27606ee" and "340a1ef389a717316a14423b5b47851a92b4ab34" have entirely different histories.
b84e21a207
...
340a1ef389
|
@ -1,16 +1,8 @@
|
||||||
from PySide6 import QtCore, QtWidgets
|
from PySide6 import QtCore, QtWidgets
|
||||||
import sys
|
|
||||||
|
|
||||||
class Window(QtWidgets.QWidget):
|
class MainWindow(QtWidgets.QWidget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.text = QtWidgets.QLabel("Hello World", alignment=QtCore.Qt.AlignCenter)
|
self.text = QtWidgets.QLabel("Hello World", alignment=QtCore.Qt.AlignCenter)
|
||||||
self.layout = QtWidgets.QVBoxLayout(self)
|
self.layout = QtWidgets.QVBoxLayout(self)
|
||||||
self.layout.addWidget(self.text)
|
self.layout.addWidget(self.text)
|
||||||
|
|
||||||
app = QtWidgets.QApplication([])
|
|
||||||
main_window = Window()
|
|
||||||
main_window.resize(800, 600)
|
|
||||||
main_window.show()
|
|
||||||
|
|
||||||
sys.exit(app.exec())
|
|
||||||
|
|
9
main.py
9
main.py
|
@ -1,7 +1,9 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import gui_helper
|
import gui_helper
|
||||||
import gui_handler
|
import gui_handler
|
||||||
|
from PySide6 import QtWidgets
|
||||||
from config import Config
|
from config import Config
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -22,3 +24,10 @@ configuration = Config(configuration_file_path, default_configuration)
|
||||||
################################################################################
|
################################################################################
|
||||||
# PROGRAM MAIN WINDOW
|
# PROGRAM MAIN WINDOW
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
app = QtWidgets.QApplication([])
|
||||||
|
main_window = gui_handler.MainWindow()
|
||||||
|
main_window.resize(800, 600)
|
||||||
|
main_window.show()
|
||||||
|
|
||||||
|
sys.exit(app.exec())
|
Reference in New Issue