def METHOD_NAME(self, event):
    super(ColorDialog, self).METHOD_NAME(event)
    btns_width = max(self.ok_btn.width(), self.cancel_btn.width())
    self.ok_btn.setFixedWidth(btns_width)
    self.cancel_btn.setFixedWidth(btns_width)