Compare commits
2 Commits
340a1ef389
...
b84e21a207
Author | SHA1 | Date |
---|---|---|
Milan Suman | b84e21a207 | |
Milan Suman | 551f7db8f6 |
|
@ -1,8 +1,16 @@
|
||||||
from PySide6 import QtCore, QtWidgets
|
from PySide6 import QtCore, QtWidgets
|
||||||
|
import sys
|
||||||
|
|
||||||
class MainWindow(QtWidgets.QWidget):
|
class Window(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,9 +1,7 @@
|
||||||
#!/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
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -24,10 +22,3 @@ 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