Pass variable args to back compat method exec_()

This commit is contained in:
Jim Miller 2022-07-16 18:20:32 -05:00
parent 7ce022f5e1
commit acddfcfeb9

View File

@ -33,8 +33,8 @@ QHoverEvent.posF = lambda self: self.position()
# Restore the removed exec_ method
def exec_(self):
return self.exec()
def exec_(self, *args, **kwargs):
return self.exec(*args, **kwargs)
QDialog.exec_ = exec_