Skip to content

Commit

Permalink
+ move handwritten Python classes to PyCXX
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 27, 2016
1 parent dec030b commit 173f19e
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 184 deletions.
2 changes: 1 addition & 1 deletion src/Base/Sequencer.cpp
Expand Up @@ -319,7 +319,7 @@ void ProgressIndicatorPy::init_type()
behaviors().supportRepr();
behaviors().supportGetattr();
behaviors().supportSetattr();
behaviors().type_object()->tp_new = &PyMake;
behaviors().set_tp_new(PyMake);

add_varargs_method("start",&ProgressIndicatorPy::start,"start(string,int)");
add_varargs_method("next",&ProgressIndicatorPy::next,"next()");
Expand Down
1 change: 1 addition & 0 deletions src/Gui/Application.cpp
Expand Up @@ -379,6 +379,7 @@ Application::Application(bool GUIenabled)
UiLoaderPy::init_type();
Base::Interpreter().addType(UiLoaderPy::type_object(),
module,"UiLoader");
PyResource::init_type();

// PySide additions
PySideUicModule* pySide = new PySideUicModule();
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/SelectionFilter.cpp
Expand Up @@ -242,7 +242,7 @@ void SelectionFilterPy::init_type()
behaviors().supportRepr();
behaviors().supportGetattr();
behaviors().supportSetattr();
behaviors().type_object()->tp_new = &PyMake;
behaviors().set_tp_new(PyMake);
add_varargs_method("match",&SelectionFilterPy::match,"match()");
add_varargs_method("result",&SelectionFilterPy::result,"result()");
add_varargs_method("test",&SelectionFilterPy::test,"test()");
Expand Down

0 comments on commit 173f19e

Please sign in to comment.