TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
PythonInterpreterPanel Class Reference
Inheritance diagram for PythonInterpreterPanel:
Inheritance graph
[legend]
Collaboration diagram for PythonInterpreterPanel:
Collaboration graph
[legend]

Public Member Functions

 PythonInterpreterPanel ()
 !!!!! Python to run needs to be on the context of scene, not render thread
 
void update (float deltaTime) override
 
void setConfig (const PythonInterpreterConfig &cfg)
 
void OnImGuiRender () override
 
void setFlags ()
 
void innerTable ()
 
void clearOutput ()
 
void runScript ()
 
void runUpdateScript (float deltaTime)
 
- Public Member Functions inherited from UIElement
template<typename T , typename... Args>
void addUIComponent (Args &&... args)
 
template<typename T >
T * getSubcomponent ()
 

Public Attributes

float default_pythonConsoleHeight = 400.0f
 
ImRect titleBarRect
 
float intervalSec = 1.0f
 
double lastExecTime = 0.0
 
bool useInterval = false
 
bool updatePaused = true
 
bool inputActive = false
 
bool firstLoop = true
 
bool readyToClear = false
 
bool readyToExecute = false
 
ImGuiChildFlags flags = ImGuiWindowFlags_NoSavedSettings
 
- Public Attributes inherited from UIElement
std::vector< std::unique_ptr< UIElement > > subcomponents
 
UIElementparent = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from UIElement
template<typename T >
static T * getUIComponent ()
 
- Static Public Attributes inherited from UIElement
static std::unordered_map< std::type_index, UIElement * > uiComponentRegistry
 
- Protected Attributes inherited from UIElement
std::string name
 
bool visible = true
 

Member Function Documentation

◆ OnImGuiRender()

void PythonInterpreterPanel::OnImGuiRender ( )
overridevirtual

Implements UIElement.

◆ runScript()

void PythonInterpreterPanel::runScript ( )

safe_putenv("PYTHONHOME=C:\\Users\\lefte\\AppData\\Local\\Programs\\Python\\Python313");

◆ update()

void PythonInterpreterPanel::update ( float  deltaTime)
overridevirtual

? keep this

Reimplemented from UIElement.


The documentation for this class was generated from the following files: