[TD]minor py fixes

This commit is contained in:
wandererfan
2020-05-10 08:18:46 -04:00
committed by WandererFan
parent 37340eef0f
commit 85f0eddddc
3 changed files with 7 additions and 4 deletions

View File

@@ -45,7 +45,10 @@ using namespace TechDraw;
// returns a string which represents the object e.g. when printed in python
std::string CosmeticEdgePy::representation(void) const
{
return "<CosmeticEdge object>";
std::stringstream ss;
ss << "<CosmeticEdge object> at " << std::hex << this;
return ss.str();
// return "<CosmeticEdge object>";
}
PyObject *CosmeticEdgePy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Python wrapper