Make repr for a TaskDialog indicate the associated document.

This commit is contained in:
Steven James
2025-10-01 16:31:52 -04:00
parent 9ff4a40bc2
commit 17e8092643

View File

@@ -364,7 +364,9 @@ TaskDialogPy::~TaskDialogPy() = default;
Py::Object TaskDialogPy::repr()
{
return Py::String("Task Dialog");
std::stringstream str;
str << "<Task Dialog for '" << dialog->getDocumentName() << "' >";
return Py::String( str.str() );
}
Py::Object TaskDialogPy::getattr(const char * attr)