Skip to content

Commit

Permalink
[App] return main window type Issue#75 (hoffstadt#76)
Browse files Browse the repository at this point in the history
* [App] fixed return main window type Issue#75

* [App] added other stuff for issue hoffstadt#75
  • Loading branch information
Pcothren authored Aug 15, 2020
1 parent 97af428 commit 4c78d68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DearPyGui/include/mvMarvel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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") });
Expand Down
2 changes: 1 addition & 1 deletion DearPyGui/src/Core/mvMarvel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion DearPyGui/stubs/dearpygui.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
...

Expand Down

0 comments on commit 4c78d68

Please sign in to comment.