clean home
parent
551f7db8f6
commit
b84e21a207
|
@ -1,4 +1,5 @@
|
|||
from PySide6 import QtCore, QtWidgets
|
||||
import sys
|
||||
|
||||
class Window(QtWidgets.QWidget):
|
||||
def __init__(self):
|
||||
|
@ -6,3 +7,10 @@ class Window(QtWidgets.QWidget):
|
|||
self.text = QtWidgets.QLabel("Hello World", alignment=QtCore.Qt.AlignCenter)
|
||||
self.layout = QtWidgets.QVBoxLayout(self)
|
||||
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,9 +1,7 @@
|
|||
#!/usr/bin/python3
|
||||
import os
|
||||
import sys
|
||||
import gui_helper
|
||||
import gui_handler
|
||||
from PySide6 import QtWidgets
|
||||
from config import Config
|
||||
|
||||
################################################################################
|
||||
|
@ -24,10 +22,3 @@ configuration = Config(configuration_file_path, default_configuration)
|
|||
################################################################################
|
||||
# PROGRAM MAIN WINDOW
|
||||
################################################################################
|
||||
|
||||
app = QtWidgets.QApplication([])
|
||||
main_window = gui_handler.Window()
|
||||
main_window.resize(800, 600)
|
||||
main_window.show()
|
||||
|
||||
sys.exit(app.exec())
|
Reference in New Issue