Hi user!
i have a question.
groupbox.PNG

i am developing a software. For my question i have uploaded a picture. I want that when i click on the setup button the group box should be hidden and when i press setup button again then group box should be visible and so on, the same like Qt widget box.

i am Writing my code like this:

def show_hide_box(self):
visible = True
if self.pushButton.clicked:
if visible == True:
self.groupBox_2.hide()
else:
self.groupBox_2.show()

when i click the setup button the group box become hidden button when i click it the button again its does't work.