    def setButtonSettings(self, btn, h, w, fontSize, color):
        targetButton = btn
        targetButton.setMaximumSize(h, w)
        targetButton.setStyleSheet("color:{}".format(color))

    def createOperationButtons(self, text, action):
        opButton = QPushButton(text)
        opButton.clicked.connect(action)
        self.setButtonSettings(opButton, 50, 50, 8, 'red')
        return opButton
        


        
class MyQPushButton(QPushButton):
	
	def set_button_settings(self, h, w, font_size, color):
        self.setMaximumSize(h, w)
        self.setStyleSheet("color:{}".format(color))
        
        
op_button = MyQPushButton()
op_button.set_button_settings(50, 50, 8, 'red')