parameters: (self, dom_node)
docstring: From dom_node to CodeBox
docstring_summary: From dom_node to CodeBox
docstring_tokens: From dom_node to CodeBox
function: def dom_node_to_codebox(self, dom_node):
          """From dom_node to CodeBox"""
          justification = dom_node.attributes["justification"].value if dom_node.hasAttribute("justification") else cons.TAG_PROP_LEFT
          codebox_dict = {
             'frame_width': int(dom_node.attributes['frame_width'].value),
             'frame_height': int(dom_node.attributes['frame_height'].value),
             'width_in_pixels': dom_node.hasAttribute("width_in_pixels") and dom_node.attributes['width_in_pixels'].value == "True",
             'syntax_highlighting': dom_node.attributes['syntax_highlighting'].value,
             'highlight_brackets': dom_node.hasAttribute("highlight_brackets") and dom_node.attributes['highlight_brackets'].value == "True",
             'show_line_numbers': dom_node.hasAttribute("show_line_numbers") and dom_node.attributes['show_line_numbers'].value == "True",
             'fill_text': dom_node.firstChild.data if dom_node.firstChild else ""
          }
          self.dad.codeboxes_handler.codebox_insert(self.dad.curr_buffer.get_iter_at_mark(self.dad.curr_buffer.get_insert()),
                                                    codebox_dict,
                                                    codebox_justification=justification,
                                                    text_buffer=self.dad.curr_buffer)
function_tokens: def dom_node_to_codebox ( self , dom_node ) : justification = dom_node . attributes [ "justification" ] . value if dom_node . hasAttribute ( "justification" ) else cons . TAG_PROP_LEFT codebox_dict = { 'frame_width' : int ( dom_node . attributes [ 'frame_width' ] . value ) , 'frame_height' : int ( dom_node . attributes [ 'frame_height' ] . value ) , 'width_in_pixels' : dom_node . hasAttribute ( "width_in_pixels" ) and dom_node . attributes [ 'width_in_pixels' ] . value == "True" , 'syntax_highlighting' : dom_node . attributes [ 'syntax_highlighting' ] . value , 'highlight_brackets' : dom_node . hasAttribute ( "highlight_brackets" ) and dom_node . attributes [ 'highlight_brackets' ] . value == "True" , 'show_line_numbers' : dom_node . hasAttribute ( "show_line_numbers" ) and dom_node . attributes [ 'show_line_numbers' ] . value == "True" , 'fill_text' : dom_node . firstChild . data if dom_node . firstChild else "" } self . dad . codeboxes_handler . codebox_insert ( self . dad . curr_buffer . get_iter_at_mark ( self . dad . curr_buffer . get_insert ( ) ) , codebox_dict , codebox_justification = justification , text_buffer = self . dad . curr_buffer )