@@ -108,16 +108,17 @@ class FormBox(BoxExpression):
108108 def init (self , * elems , ** kwargs ):
109109 self .box_options = kwargs
110110 self .form = elems [1 ]
111- self .boxes = elems [0 ]
112- assert isinstance (self .boxes , BoxElementMixin ), f"{ type (self .boxes )} "
111+
112+ self .inner_box = elems [0 ]
113+ assert isinstance (self .inner_box , BoxElementMixin ), f"{ type (self .inner_box )} "
113114
114115 @property
115116 def elements (self ):
116117 if self ._elements is None :
117118 self ._elements = elements_to_expressions (
118119 self ,
119120 (
120- self .boxes ,
121+ self .inner_box ,
121122 self .form ,
122123 ),
123124 self .box_options ,
@@ -276,12 +277,12 @@ class InterpretationBox(BoxExpression):
276277 summary_text = "box associated to an input expression"
277278
278279 def __repr__ (self ):
279- result = "InterpretationBox\n " + repr (self .boxes )
280+ result = "InterpretationBox\n " + repr (self .inner_box )
280281 result += f"\n { self .box_options } "
281282 return result
282283
283284 def init (self , * expr , ** options ):
284- self .boxes = expr [0 ]
285+ self .inner_box = expr [0 ]
285286 self .expr = expr [1 ]
286287 self .box_options = options
287288
@@ -291,7 +292,7 @@ def elements(self):
291292 self ._elements = elements_to_expressions (
292293 self ,
293294 (
294- self .boxes ,
295+ self .inner_box ,
295296 self .expr ,
296297 ),
297298 self .box_options ,
@@ -321,11 +322,11 @@ def eval_to_expression2(self, boxexpr, form, evaluation):
321322
322323 def eval_display (self , boxexpr , evaluation ):
323324 """DisplayForm[boxexpr_InterpretationBox]"""
324- return boxexpr .boxes
325+ return boxexpr .inner_box
325326
326327 @property
327328 def is_multiline (self ) -> bool :
328- return self .boxes .is_multiline
329+ return self .inner_box .is_multiline
329330
330331
331332class PaneBox (BoxExpression ):
@@ -349,12 +350,12 @@ class PaneBox(BoxExpression):
349350 def elements (self ):
350351 if self ._elements is None :
351352 self ._elements = elements_to_expressions (
352- self , (self .boxes ,), self .box_options
353+ self , (self .inner_box ,), self .box_options
353354 )
354355 return self ._elements
355356
356357 def init (self , expr , ** options ):
357- self .boxes = expr
358+ self .inner_box = expr
358359 self .box_options = options
359360
360361 def eval_panebox1 (self , expr , evaluation , options ):
@@ -373,7 +374,7 @@ def eval_display(boxexpr, evaluation):
373374
374375 @property
375376 def is_multiline (self ) -> bool :
376- return self .boxes .is_multiline
377+ return self .inner_box .is_multiline
377378
378379
379380class RowBox (BoxExpression ):
@@ -555,7 +556,7 @@ def __repr__(self):
555556 def elements (self ):
556557 if self ._elements is None :
557558 style = self .style
558- boxes = self .boxes
559+ boxes = self .inner_box
559560 if style :
560561 self ._elements = elements_to_expressions (
561562 self , (boxes , style ), self .box_options
@@ -579,27 +580,27 @@ def eval_style(self, boxes, style, evaluation: Evaluation, options: dict):
579580 return StyleBox (boxes , style = style , ** options )
580581
581582 def get_string_value (self ) -> str :
582- box = self .boxes
583+ box = self .inner_box
583584 if isinstance (box , String ):
584585 return box .value
585586 return ""
586587
587- def init (self , boxes , style = None , ** options ):
588+ def init (self , box , style = None , ** options ):
588589 # This implementation supersedes Expression.process_style_box
589- if isinstance (boxes , StyleBox ):
590- options .update (boxes .box_options )
591- boxes = boxes . boxes
590+ if isinstance (box , StyleBox ):
591+ options .update (box .box_options )
592+ box = box . inner_box
592593 self .style = style
593594 self .box_options = options
594595 assert options is not None
595- self .boxes = boxes
596+ self .inner_box = box
596597 assert isinstance (
597- self .boxes , BoxElementMixin
598- ), f"{ type (self .boxes )} ,{ self .boxes } "
598+ self .inner_box , BoxElementMixin
599+ ), f"{ type (self .inner_box )} ,{ self .inner_box } "
599600
600601 @property
601602 def is_multiline (self ) -> bool :
602- return self .boxes .is_multiline
603+ return self .inner_box .is_multiline
603604
604605
605606class SubscriptBox (BoxExpression ):
@@ -759,16 +760,16 @@ class TagBox(BoxExpression):
759760 def init (self , * elems , ** kwargs ):
760761 self .box_options = kwargs
761762 self .form = elems [1 ]
762- self .boxes = elems [0 ]
763- assert isinstance (self .boxes , BoxElementMixin ), f"{ type (self .boxes )} "
763+ self .inner_box = elems [0 ]
764+ assert isinstance (self .inner_box , BoxElementMixin ), f"{ type (self .inner_box )} "
764765
765766 @property
766767 def elements (self ):
767768 if self ._elements is None :
768769 self ._elements = elements_to_expressions (
769770 self ,
770771 (
771- self .boxes ,
772+ self .inner_box ,
772773 self .form ,
773774 ),
774775 self .box_options ,
@@ -784,7 +785,7 @@ def eval_tagbox(self, expr, form: Symbol, evaluation: Evaluation):
784785
785786 @property
786787 def is_multiline (self ) -> bool :
787- return self .boxes .is_multiline
788+ return self .inner_box .is_multiline
788789
789790
790791class TemplateBox (BoxExpression ):
0 commit comments