Gui: Add CommandAction descriptor object to access commands action
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
#include "AxisOriginPy.h"
|
||||
#include "BitmapFactory.h"
|
||||
#include "Command.h"
|
||||
#include "CommandActionPy.h"
|
||||
#include "CommandPy.h"
|
||||
#include "Control.h"
|
||||
#include "DlgSettingsCacheDirectory.h"
|
||||
@@ -469,6 +470,10 @@ Application::Application(bool GUIenabled)
|
||||
Py::Object(Gui::TaskView::ControlPy::getInstance(), true));
|
||||
Gui::TaskView::TaskDialogPy::init_type();
|
||||
|
||||
CommandActionPy::init_type();
|
||||
Base::Interpreter().addType(CommandActionPy::type_object(),
|
||||
module, "CommandAction");
|
||||
|
||||
Base::Interpreter().addType(&LinkViewPy::Type, module, "LinkView");
|
||||
Base::Interpreter().addType(&AxisOriginPy::Type, module, "AxisOrigin");
|
||||
Base::Interpreter().addType(&CommandPy::Type, module, "Command");
|
||||
|
||||
Reference in New Issue
Block a user