Add Python functionality for DrawHatch

This commit is contained in:
WandererFan
2016-01-28 12:43:51 -05:00
committed by wmayer
parent 4f4e343d5f
commit c47bdf5d9a
7 changed files with 77 additions and 12 deletions

View File

@@ -0,0 +1,32 @@
#include "PreCompiled.h"
#include "Mod/TechDraw/App/DrawHatch.h"
// inclusion of the generated files (generated out of DrawHatchPy.xml)
#include "DrawHatchPy.h"
#include "DrawHatchPy.cpp"
using namespace TechDraw;
// returns a string which represents the object e.g. when printed in python
std::string DrawHatchPy::representation(void) const
{
return std::string("<DrawHatch object>");
}
PyObject *DrawHatchPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;
}
int DrawHatchPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
{
return 0;
}