0
This program is an application to download videos from youtube, the code is working, but when I tried to call the graphical interface created in Qt Designer, it did not appear.
The code did not show any error, but is also not calling the image.
Could someone help me, please?
from PyQt5 import uic, QtWidgets
def funcao_principal():
linha1 = Login.lineEdit.text()
if Login.radioButton.isChecked():
print("Música selecionada")
elif Login.radioButton_2.isChecked():
print("Vídeo selecionado")
print("ENSIRA UM LINK:", linha1)
app = QtWidgets.QApplication([])
Login = uic.loadUi("Login.ui")
Login.pushButton_login.clicked.connect(funcao_principal)
app.exec()
Can’t you show me anything else? for example, its main function has the line1 saying q is an edit line but does not specify the object name, size, position within the window...
– Carlos Cortez
I started in the area recently, do not know much of the subject, to half lost here kk
– Karllos Silva
That’s the least... you’re showing the preview screen in QT designer, but saved? you need a file or a template to be able to embed in your program. If you have already done it, put his code here for us
– Carlos Cortez
The answer lies just below Karllos, I hope to have helped!
– Hyago Santos
Damn it worked, thank you very much man
– Karllos Silva