File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ def __init__(
190190 )
191191
192192 name = kwargs .get ("name" , key )
193- CheckableWidget .__init__ (self , check_registry , name )
194193 if exercise_registry is not None :
195194 ExerciseWidget .__init__ (self , exercise_registry , key )
196195 else :
@@ -227,7 +226,7 @@ def __init__(
227226
228227 self ._cue_code = self ._code
229228
230- if self . _check_registry is None or self ._code is None :
229+ if check_registry is None or self ._code is None :
231230 self ._check_button = None
232231 else :
233232 self ._cue_code = CheckCueBox (
@@ -521,6 +520,7 @@ def __init__(
521520 * args ,
522521 ** kwargs ,
523522 )
523+ CheckableWidget .__init__ (self , check_registry , name )
524524 # In this case there is no code to be written by the student, so the code
525525 # exercise should work out of the box. Since the cues for the parameters
526526 # are also disabled, we update at the beginning once.
You can’t perform that action at this time.
0 commit comments