QObject e QThread: criando a janela inicial com Qt Designer

This commit is contained in:
Luiz Otávio
2023-03-11 09:55:13 -03:00
parent a04c0304e7
commit 09bfb032eb
3 changed files with 144 additions and 0 deletions

17
aula204/main.py Normal file
View File

@@ -0,0 +1,17 @@
import sys
from PySide6.QtWidgets import QApplication, QWidget
from ui_workerui import Ui_myWidget
class MyWidget(QWidget, Ui_myWidget):
def __init__(self, parent=None):
super().__init__(parent)
self.setupUi(self)
if __name__ == '__main__':
app = QApplication(sys.argv)
myWidget = MyWidget()
myWidget.show()
app.exec()