diff --git a/DearPyGui/include/mvMarvel.h b/DearPyGui/include/mvMarvel.h index fb65e97c8..be8fe0ae2 100644 --- a/DearPyGui/include/mvMarvel.h +++ b/DearPyGui/include/mvMarvel.h @@ -1592,7 +1592,7 @@ namespace Marvel { }, "Returns time since last frame.", "float") }); parsers->insert({ "get_main_window_size", mvPythonParser({ - }, "Returns the size of the main window.", "[float, float]") }); + }, "Returns the size of the main window.", "[int, int]") }); parsers->insert({ "get_thread_count", mvPythonParser({ }, "Returns the allowable thread count.", "int") }); diff --git a/DearPyGui/src/Core/mvMarvel.cpp b/DearPyGui/src/Core/mvMarvel.cpp index d38095fe5..3af63afe3 100644 --- a/DearPyGui/src/Core/mvMarvel.cpp +++ b/DearPyGui/src/Core/mvMarvel.cpp @@ -4332,7 +4332,7 @@ namespace Marvel { PyObject* get_main_window_size(PyObject* self, PyObject* args, PyObject* kwargs) { - return mvPythonTranslator::ToPyPair(mvApp::GetApp()->getActualWidth(), mvApp::GetApp()->getActualHeight()); + return mvPythonTranslator::ToPyPairII(mvApp::GetApp()->getActualWidth(), mvApp::GetApp()->getActualHeight()); } PyObject* get_theme(PyObject* self, PyObject* args, PyObject* kwargs) diff --git a/DearPyGui/stubs/dearpygui.pyi b/DearPyGui/stubs/dearpygui.pyi index 7d0c65645..e97a7b399 100644 --- a/DearPyGui/stubs/dearpygui.pyi +++ b/DearPyGui/stubs/dearpygui.pyi @@ -468,7 +468,7 @@ def get_log_level() -> int: """Returns the log level.""" ... -def get_main_window_size() -> [float, float]: +def get_main_window_size() -> [int, int]: """Returns the size of the main window.""" ...