Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial python console #336

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ list(APPEND GZB_SOURCES
app/AboutWindow.hpp
app/AboutWindow.cpp
app/LogWindow.hpp
app/PyWindow.hpp
app/DemoWindow.hpp
app/ActorContainer.hpp
app/ActorContainer.cpp
Expand Down
7 changes: 6 additions & 1 deletion app/App.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "AboutWindow.hpp"
#include "LogWindow.hpp"
#include "DemoWindow.hpp"
#include "PyWindow.hpp"
#include "imgui.h"
#include "imgui_internal.h"
#include <string>
Expand All @@ -30,7 +31,9 @@ struct App
LogWindow log_win;
DemoWindow demo_win;
StageWindow stage_win;

#ifdef PYTHON3_FOUND
PyWindow py_win;
#endif
static App& getApp() {
static App app;
return app;
Expand Down Expand Up @@ -67,6 +70,8 @@ struct App
log_win.OnImGui();
if (demo_win.showing)
demo_win.OnImGui();
if (py_win.showing)
py_win.OnImGui();

return rc;
};
Expand Down
Loading
Loading