Make repr for a TaskDialog indicate the associated document.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user