Compare commits

...

2 Commits

Author SHA1 Message Date
Milan Suman b84e21a207 clean home 2022-03-19 10:28:21 +05:30
Milan Suman 551f7db8f6 Bodge hates camels 2022-03-19 10:26:44 +05:30
2 changed files with 9 additions and 10 deletions

View File

@ -1,8 +1,16 @@
from PySide6 import QtCore, QtWidgets
import sys
class MainWindow(QtWidgets.QWidget):
class Window(QtWidgets.QWidget):
def __init__(self):
super().__init__()
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())

View File

@ -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.MainWindow()
main_window.resize(800, 600)
main_window.show()
sys.exit(app.exec())