# {py:mod}`simvx.core.ui.code_editor_panel` ```{py:module} simvx.core.ui.code_editor_panel ``` ```{autodoc2-docstring} simvx.core.ui.code_editor_panel :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`CodeEditorPanel ` - ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.log :summary: ``` ```` ### API ````{py:data} log :canonical: simvx.core.ui.code_editor_panel.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.log ``` ```` `````{py:class} CodeEditorPanel(**kwargs) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel Bases: {py:obj}`simvx.core.ui.core.Control` ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.__init__ ``` ````{py:method} open_file(path: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.open_file ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.open_file ``` ```` ````{py:method} save_current() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.save_current ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.save_current ``` ```` ````{py:method} save_file(path: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.save_file ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.save_file ``` ```` ````{py:method} save_all() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.save_all ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.save_all ``` ```` ````{py:method} close_current() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.close_current ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.close_current ``` ```` ````{py:method} close_file(path: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.close_file ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.close_file ``` ```` ````{py:method} new_file() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.new_file ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.new_file ``` ```` ````{py:method} goto_line(line: int, col: int = 0) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.goto_line ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.goto_line ``` ```` ````{py:method} get_current_editor() -> simvx.core.ui.code_edit.CodeTextEdit | None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_current_editor ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.get_current_editor ``` ```` ````{py:method} get_current_path() -> str | None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_current_path ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.get_current_path ``` ```` ````{py:method} get_open_files() -> dict[str, dict] :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_open_files ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.get_open_files ``` ```` ````{py:method} get_tab_paths() -> list[str] :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_tab_paths ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.get_tab_paths ``` ```` ````{py:method} is_file_modified(path: str) -> bool :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.is_file_modified ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.is_file_modified ``` ```` ````{py:method} get_file_text(path: str) -> str :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_file_text ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.get_file_text ``` ```` ````{py:method} get_modified_files() -> list[str] :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_modified_files ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.get_modified_files ``` ```` ````{py:method} rename_file(old_path: str, new_path: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.rename_file ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.rename_file ``` ```` ````{py:method} reload_file(path: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.reload_file ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.reload_file ``` ```` ````{py:method} set_all_editors_property(attr: str, value) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.set_all_editors_property ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.set_all_editors_property ``` ```` ````{py:method} set_lsp_client(client) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.set_lsp_client ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.set_lsp_client ``` ```` ````{py:method} refresh_diagnostics(path: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.refresh_diagnostics ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.refresh_diagnostics ``` ```` ````{py:method} refresh_breakpoints(path: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.refresh_breakpoints ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.refresh_breakpoints ``` ```` ````{py:method} show_completions(items: list, prefix: str | None = None) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.show_completions ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.show_completions ``` ```` ````{py:method} undo() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.undo ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.undo ``` ```` ````{py:method} redo() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.redo ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.redo ``` ```` ````{py:method} cut() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.cut ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.cut ``` ```` ````{py:method} copy() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.copy ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.copy ``` ```` ````{py:method} paste() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.paste ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.paste ``` ```` ````{py:method} select_all() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.select_all ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.select_all ``` ```` ````{py:method} toggle_comment() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.toggle_comment ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.toggle_comment ``` ```` ````{py:method} delete_line() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.delete_line ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.delete_line ``` ```` ````{py:method} select_next_occurrence() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.select_next_occurrence ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.select_next_occurrence ``` ```` ````{py:method} show_find() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.show_find ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.show_find ``` ```` ````{py:method} show_replace() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.show_replace ```{autodoc2-docstring} simvx.core.ui.code_editor_panel.CodeEditorPanel.show_replace ``` ```` ````{py:method} process(dt: float) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.process ```` ````{py:method} draw(renderer) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.draw ```` ````{py:attribute} size_x :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.size_x :value: > 'Property(...)' ```` ````{py:attribute} size_y :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.size_y :value: > 'Property(...)' ```` ````{py:property} size :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.size :type: simvx.core.math.types.Vec2 ```` ````{py:method} get_theme() -> simvx.core.ui.core.Theme :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_theme ```` ````{py:method} get_rect() -> tuple[float, float, float, float] :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_rect ```` ````{py:method} get_global_rect() -> tuple[float, float, float, float] :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_global_rect ```` ````{py:method} is_point_inside(point) -> bool :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.is_point_inside ```` ````{py:method} set_anchor_preset(preset: simvx.core.ui.core.AnchorPreset) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.set_anchor_preset ```` ````{py:method} set_focus() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.set_focus ```` ````{py:method} grab_focus() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.grab_focus ```` ````{py:method} release_focus() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.release_focus ```` ````{py:method} has_focus() -> bool :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.has_focus ```` ````{py:method} focus_next_control() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.focus_next_control ```` ````{py:method} focus_previous_control() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.focus_previous_control ```` ````{py:method} grab_mouse() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.grab_mouse ```` ````{py:method} release_mouse() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.release_mouse ```` ````{py:method} set_drag_preview(control: simvx.core.ui.core.Control) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.set_drag_preview ```` ````{py:method} draw_popup(renderer) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.draw_popup ```` ````{py:method} is_popup_point_inside(point) -> bool :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.is_popup_point_inside ```` ````{py:method} popup_input(event) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.popup_input ```` ````{py:method} dismiss_popup() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.dismiss_popup ```` ````{py:attribute} z_index :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.z_as_relative :value: > 'Property(...)' ```` ````{py:property} absolute_z_index :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.absolute_z_index :type: int ```` ````{py:property} position :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.position :type: simvx.core.math.types.Vec2 ```` ````{py:property} rotation :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.rotation :type: float ```` ````{py:property} rotation_degrees :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.rotation_degrees :type: float ```` ````{py:property} scale :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} global_position :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.global_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} global_rotation :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.global_rotation :type: float ```` ````{py:property} global_scale :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.global_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.translate ```` ````{py:method} rotate(radians: float) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.rotate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, color=None) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.wrap_screen ```` ````{py:attribute} script_error_raised :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.name :type: str ```` ````{py:property} process_mode :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.process_mode :type: simvx.core.descriptors.ProcessMode ```` ````{py:method} reset_error() -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.reset_error ```` ````{py:method} add_child(node: simvx.core.node.Node) -> simvx.core.node.Node :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.add_child ```` ````{py:method} remove_child(node: simvx.core.node.Node) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.remove_child ```` ````{py:method} reparent(new_parent: simvx.core.node.Node) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.node.Node :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_node ```` ````{py:method} find_child(name: str, recursive: bool = False) -> simvx.core.node.Node | None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.find_child ```` ````{py:method} find(node_type: type) -> simvx.core.node.Node | None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.find_all ```` ````{py:property} path :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.is_in_group ```` ````{py:method} ready() -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.ready ```` ````{py:method} enter_tree() -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.exit_tree ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.physics_process ```` ````{py:method} input_event(event: simvx.core.events.InputEvent) -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.input_event ```` ````{py:method} input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.input ```` ````{py:method} unhandled_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.descriptors.Coroutine) -> simvx.core.descriptors.CoroutineHandle :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.stop_coroutine ```` ````{py:method} destroy() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.destroy ```` ````{py:attribute} queue_free :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.queue_free :value: > None ```` ````{py:property} tree :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.tree :type: simvx.core.scene_tree.SceneTree ```` ````{py:method} get_tree() -> simvx.core.scene_tree.SceneTree :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_tree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.descriptors.Property] :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_properties :classmethod: ```` ````{py:attribute} get_settings :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.get_settings :value: > None ```` ````{py:method} __repr__() :canonical: simvx.core.ui.code_editor_panel.CodeEditorPanel.__repr__ ```` `````