I was wondering if there was a way to make a pushbutton invisible while still being functional?
simply use self.pushButton.hide(). If you need to hide it. When needed you can show it again.
Make a pushbutton invisible in PyQt5