Oops, interaction() returned a single value in stead of a tuple (I thought that bug was loooong fixed??!?).

This commit is contained in:
Jack Jansen 2000-12-14 23:34:15 +00:00
parent 581fa78362
commit f0d750803d
1 changed files with 2 additions and 3 deletions

View File

@ -112,11 +112,10 @@ class radio:
def interact(scriptname): def interact(scriptname):
if PPC_ONLY: if PPC_ONLY:
return 'pwpc' return 'pwpc', 1
d = Dlg.GetNewDialog(DLG_ID, -1) d = Dlg.GetNewDialog(DLG_ID, -1)
if not d: if not d:
print "Can't get DLOG resource with id =", DLG_ID raise "Can't get DLOG resource with id =", DLG_ID
return
d.SetDialogDefaultItem(OK_BUTTON) d.SetDialogDefaultItem(OK_BUTTON)
d.SetDialogCancelItem(CANCEL_BUTTON) d.SetDialogCancelItem(CANCEL_BUTTON)
Dlg.ParamText(scriptname, "", "", "") Dlg.ParamText(scriptname, "", "", "")