Skip to main content

PythonConsoleWidget

PythonConsoleWidget

#include <PythonConsoleWidget.hpp>

Inherits from QWidget

Public Signals

Name
void executionFinished()
Emitted after each execution (for namespace refresh).

Public Functions

Name
PythonConsoleWidget(std::shared_ptr< PythonWidgetState > state, PythonBridge * bridge, QWidget * parent =[nullptr])
~PythonConsoleWidget() override
void executeInput()
Execute the current input text.
void clearOutput()
Clear the output area.
QPlainTextEdit * inputEdit() const
Get the input text edit (for inserting text from properties panel).
void updateFontSize(int size)
Apply current font size from state.
void setAutoScroll(bool enabled)
Apply auto-scroll setting.

Protected Functions

Name
bool eventFilter(QObject * obj, QEvent * event) override

Public Signals Documentation

signal executionFinished

void executionFinished()

Emitted after each execution (for namespace refresh).

Public Functions Documentation

function PythonConsoleWidget

explicit PythonConsoleWidget(
    std::shared_ptr< PythonWidgetState > state,
    PythonBridge * bridge,
    QWidget * parent =nullptr
)

function ~PythonConsoleWidget

~PythonConsoleWidget() override

function executeInput

void executeInput()

Execute the current input text.

function clearOutput

void clearOutput()

Clear the output area.

function inputEdit

inline QPlainTextEdit * inputEdit() const

Get the input text edit (for inserting text from properties panel).

function updateFontSize

void updateFontSize(
    int size
)

Apply current font size from state.

function setAutoScroll

void setAutoScroll(
    bool enabled
)

Apply auto-scroll setting.

Protected Functions Documentation

function eventFilter

bool eventFilter(
    QObject * obj,
    QEvent * event
) override

Updated on 2026-11-13 at 20:25:40 +0000