OnDialogClose need to return True or False if you allow to close the dialog or not. So just add "return True"
import RLPy
class DialogEventCallback(RLPy.RDialogCallback):
def __init__(self):
RLPy.RDialogCallback.__init__(self)
def OnDialogClose(self):
print("dialog close")
return True
rl_dialog = RLPy.RUi.CreateRDialog()
dialog_event_callback = DialogEventCallback()
rl_dialog.RegisterEventCallback(dialog_event_callback)
rl_dialog.Show()
iClone 7, 3DXchange 7 Pipeline, CC3 Pipeline, CT8 Pipeline, Iray, Live Face, iPhone Xr, Win 10, i9 9900K ~5GHz, Nvidia RTX 2080 8GB, 16GB Ram, M.2 SSD