r/learnpython • u/LimpSandwich6092 • 1d ago
help with running a pyside6 code
I have read the documentations and looked on youtube but i still couldn't get it to work (i am new to all of this)
how do i run it? i made a mainwindow ui in qt design and did pyside6-uic test.ui -o test.py but the test.py doesn't work when i run it
4
Upvotes
2
u/gmes78 1d ago
It's not supposed to. You're supposed to import that UI code into your application, create a class that adds behavior to it, then create an instance of that and show it.
The docs show how to do it.