clicked.connect() Error

The connect() method expects a callable argument. When you write self.Soft_Memory() you are making a call to that method, and the result of that call (None, since you don’t explicitly return anything) is what is being passed to connect().

You want to pass a reference to the method itself.

self.PB1.clicked.connect(self.Soft_Memory)

Leave a Comment