Apr-11-2020, 01:13 AM
I create a GUI usin PyQt5 Designer
and i want to know how to make that the push buttons trigger a py. script?
whats the command for that?
i already convert from .ui to .py and this was the result script
and i want to know how to make that the push buttons trigger a py. script?
whats the command for that?
i already convert from .ui to .py and this was the result script
from PyQt5 import QtCore, QtGui, QtWidgets, uic
class GUI_PLC_1(QtWidgets.QMainWindow):
def __init__(self):
super(GUI_PLC_1,self).__init__()
uic.loadUi('GUI_PLC.ui',self)
if __name__ == '__main__':
import sys
app = QtWidgets.QApplication(sys.argv)
window = GUI_PLC_1()
window.show()
sys.exit(app.exec_())
