diff --git a/XSConsoleDialogueBases.py b/XSConsoleDialogueBases.py index 0b558ce..f56bd57 100644 --- a/XSConsoleDialogueBases.py +++ b/XSConsoleDialogueBases.py @@ -634,13 +634,13 @@ def HandleSRChoice(self, inChoice): self.DoAction(self.choices[inChoice].sr) class ProgressDialogue(Dialogue): - def __init__(self, inTask, inText, *args, OnComplete=None): + def __init__(self, inTask, inText, *args, **kwargs): Dialogue.__init__(self) self.task = inTask self.text = inText # OnComplete is a function to call when the task completes # Used for getting task result and do something after the task completes - self.OnComplete = OnComplete + self.OnComplete = kwargs.get('OnComplete', None) self.args = args # Arguments to pass to OnComplete self.ChangeState('INITIAL')