Python Forum
[PyQt] enter from py exported by pyqt5 designer to another py file - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [PyQt] enter from py exported by pyqt5 designer to another py file (/thread-11220.html)



enter from py exported by pyqt5 designer to another py file - royer14 - Jun-29-2018

Hello, I have difficulty entering a py, which I had exported from pyqt5 designer with the name "program.py", using another py with name "programa.py".
Look at the code, please.
program.py
You can execute it, but delete the lines that import the icon.
programa.py
In
self.actionImprimir.triggered.connect(self.helpo)
in this code it makes reference that when I press the button that is related to the other, I execute an impression with the name of:

    def helpo(self,s):
        """"""
        print("hola",s)