Use this to add, remove, and edit pins and apply them when you're finished, like this: with EditAndApply() as edit: edit.Remove(mypin) #remove it before modifying it mypin.SetSomeProperty() #modify the pin edit.Add(mypin) #add the modified pin back Your changes are applied when the with block exits.
More...
Data and other attributes inherited from Boost.Python.instance: |
def | __new__ |
Detailed Description
Use this to add, remove, and edit pins and apply them when you're finished, like this: with EditAndApply() as edit: edit.Remove(mypin) #remove it before modifying it mypin.SetSomeProperty() #modify the pin edit.Add(mypin) #add the modified pin back Your changes are applied when the with block exits.
Method resolution order
EditAndApply
Boost.Python.instance
builtin.object
Constructor & Destructor Documentation
def ModelPins.EditAndApply.__init__ |
( |
|
arg1 | ) |
|
- Returns
- Instance of type None
C++ signature :
void __init__(_object*)
Member Function Documentation
def ModelPins.EditAndApply.__dict__ |
( |
|
args | ) |
|
def ModelPins.EditAndApply.__enter__ |
( |
|
arg1 | ) |
|
- Returns
- Instance of type EditAndApply
C++ signature :
Alloy::Pointer::Pointer<SDS2::ModelRestraint::Py_ManualEdit> __enter__(SDS2::ModelRestraint::Py_ManualEdit {lvalue})
def ModelPins.EditAndApply.__exit__ |
( |
|
arg1, |
|
|
|
arg2, |
|
|
|
arg3, |
|
|
|
arg4 |
|
) |
| |
- Returns
- Instance of type None
C++ signature :
void __exit__(SDS2::ModelRestraint::Py_ManualEdit {lvalue},boost::python::api::object,boost::python::api::object,boost::python::api::object)
def ModelPins.EditAndApply.__new__ |
( |
|
args | ) |
|
T.__new__(S, ...) -> a new object with type S, a subtype of T
__new__ = <built-in method __new__ of Boost.Python.class object>
def ModelPins.EditAndApply.__reduce__ |
( |
|
args | ) |
|
__reduce__ = <unnamed Boost.Python function>(args)
def ModelPins.EditAndApply.__weakref__ |
( |
|
args | ) |
|
def ModelPins.EditAndApply.Add |
( |
|
arg1, |
|
|
|
arg2 |
|
) |
| |
- Returns
- Instance of type None
C++ signature :
void Add(SDS2::ModelRestraint::Py_ManualEdit {lvalue},Alloy::Pointer::Pointer<SDS2::ModelRestraint::ModelRestraint>)
def ModelPins.EditAndApply.Remove |
( |
|
arg1, |
|
|
|
arg2 |
|
) |
| |
- Returns
- Instance of type bool
C++ signature :
bool Remove(SDS2::ModelRestraint::Py_ManualEdit {lvalue},Alloy::Pointer::Pointer<SDS2::ModelRestraint::ModelRestraint>)
Member Data Documentation
int ModelPins.EditAndApply.__instance_size__ = 40 |
|
staticprivate |