I'm working with Pyqt and I have my window with 3 buttons. The first and second buttons I want to give them shares. The actions that I need is that they initiate other codes. link There are both programs. Pantalla.py is the pyqt and I need the first button to execute the test code! Probe placing import test at the start of the program but I run it simultaneously when I run pantalla.py
Use Pyqt4 and python 2.7
def __init__(self, parent=None):
super(Form, self).__init__(parent)
layout = QVBoxLayout()
#Marketplace
self.b1 = QPushButton("Market Places")
self.b1.setCheckable(True)
self.b1.clicked.connect(lambda:self.whichbtn(self.b1))
self.b1.clicked.connect(self."test.py")
I know it's badly written but it's a way of graphing what I'm looking for! Greetings