parameters: (self, action)
docstring: Change CodeBox Properties
docstring_summary: Change CodeBox Properties
docstring_tokens: Change CodeBox Properties
function: def codebox_change_properties(self, action):
          """Change CodeBox Properties"""
          if not self.dad.is_curr_node_not_read_only_or_error(): return
          self.dad.codebox_width = self.curr_codebox_anchor.frame_width
          self.dad.codebox_width_pixels = self.curr_codebox_anchor.width_in_pixels
          self.dad.codebox_height = self.curr_codebox_anchor.frame_height
          self.dad.codebox_line_num = self.curr_codebox_anchor.show_line_numbers
          self.dad.codebox_match_bra = self.curr_codebox_anchor.highlight_brackets
          self.dad.codebox_syn_highl = self.curr_codebox_anchor.syntax_highlighting
          if not self.dialog_codeboxhandle(_("Edit CodeBox")): return
          self.curr_codebox_anchor.syntax_highlighting = self.dad.codebox_syn_highl
          self.dad.set_sourcebuffer_syntax_highlight(self.curr_codebox_anchor.sourcebuffer, self.curr_codebox_anchor.syntax_highlighting)
          self.curr_codebox_anchor.frame_width = int(self.dad.codebox_width)
          self.curr_codebox_anchor.frame_height = int(self.dad.codebox_height)
          self.curr_codebox_anchor.width_in_pixels = self.dad.codebox_width_pixels
          self.curr_codebox_anchor.highlight_brackets = self.dad.codebox_match_bra
          self.curr_codebox_anchor.sourcebuffer.set_highlight_matching_brackets(self.curr_codebox_anchor.highlight_brackets)
          self.curr_codebox_anchor.show_line_numbers = self.dad.codebox_line_num
          self.curr_codebox_anchor.sourceview.set_show_line_numbers(self.curr_codebox_anchor.show_line_numbers)
          self.codebox_apply_width_height(self.curr_codebox_anchor)
          self.dad.update_window_save_needed("nbuf", True)
function_tokens: def codebox_change_properties ( self , action ) : if not self . dad . is_curr_node_not_read_only_or_error ( ) : return self . dad . codebox_width = self . curr_codebox_anchor . frame_width self . dad . codebox_width_pixels = self . curr_codebox_anchor . width_in_pixels self . dad . codebox_height = self . curr_codebox_anchor . frame_height self . dad . codebox_line_num = self . curr_codebox_anchor . show_line_numbers self . dad . codebox_match_bra = self . curr_codebox_anchor . highlight_brackets self . dad . codebox_syn_highl = self . curr_codebox_anchor . syntax_highlighting if not self . dialog_codeboxhandle ( _ ( "Edit CodeBox" ) ) : return self . curr_codebox_anchor . syntax_highlighting = self . dad . codebox_syn_highl self . dad . set_sourcebuffer_syntax_highlight ( self . curr_codebox_anchor . sourcebuffer , self . curr_codebox_anchor . syntax_highlighting ) self . curr_codebox_anchor . frame_width = int ( self . dad . codebox_width ) self . curr_codebox_anchor . frame_height = int ( self . dad . codebox_height ) self . curr_codebox_anchor . width_in_pixels = self . dad . codebox_width_pixels self . curr_codebox_anchor . highlight_brackets = self . dad . codebox_match_bra self . curr_codebox_anchor . sourcebuffer . set_highlight_matching_brackets ( self . curr_codebox_anchor . highlight_brackets ) self . curr_codebox_anchor . show_line_numbers = self . dad . codebox_line_num self . curr_codebox_anchor . sourceview . set_show_line_numbers ( self . curr_codebox_anchor . show_line_numbers ) self . codebox_apply_width_height ( self . curr_codebox_anchor ) self . dad . update_window_save_needed ( "nbuf" , True )