summaryrefslogtreecommitdiff
path: root/include/gras/block.i
diff options
context:
space:
mode:
Diffstat (limited to 'include/gras/block.i')
-rw-r--r--include/gras/block.i10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/gras/block.i b/include/gras/block.i
index 2de2c98..2ba9779 100644
--- a/include/gras/block.i
+++ b/include/gras/block.i
@@ -21,19 +21,10 @@
////////////////////////////////////////////////////////////////////////
// Create pythonic gateway to get and set
////////////////////////////////////////////////////////////////////////
-%pythoncode %{
-from PMC import *
-%}
%extend gras::Block
{
%insert("python")
%{
- def set(self, key, value):
- self._set_property(key, PMC_M(value))
-
- def get(self, key):
- return self._get_property(key)()
-
def post_output_msg(self, which_output, value):
if not isinstance(value, PMCC): value = PMC_M(value)
self._post_output_msg(which_output, value)
@@ -41,7 +32,6 @@ from PMC import *
def post_input_msg(self, which_input, value):
if not isinstance(value, PMCC): value = PMC_M(value)
self._post_input_msg(which_input, value)
-
%}
}