As part of a function inside a python script of a PyQt5 Gui i have the following code:
def link_info(self, Form):
self.timer = QtCore.QTimer()
self.timer.stop
self.ip=self.lineEdit_ip.text()
self.port=int(self.lineEdit_2.text())
self.function(Form)
print('here')
self.timer.timeout.connect(self.function)
self.timer.start(5000)
I am getting the error:
function() missing 1 required positional argument: 'Form'
When I change the code to:
self.timer.timeout.connect(self.function(Form))
I get the error:
argument 1 has unexpected type 'NoneType'
How can i solve this?
Thanks