diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-08-01 11:58:01 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-08-01 11:58:01 +0000 |
commit | 15b2643791d8b6efe6075bba78acea812f368ff0 (patch) | |
tree | 5d4c6a0137985acf6e9d8f9811df8cf0e82299cb /externals/grill/py/source/pyext.cpp | |
parent | 367019514f0f39144c17878213cf92a9de991d27 (diff) |
path setting based on new flext functionality
open editor for module file on "edit" message (or click)
open editor for script under OS X
svn path=/trunk/; revision=3399
Diffstat (limited to 'externals/grill/py/source/pyext.cpp')
-rw-r--r-- | externals/grill/py/source/pyext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/externals/grill/py/source/pyext.cpp b/externals/grill/py/source/pyext.cpp index 00ff0cc4..dd4b5a67 100644 --- a/externals/grill/py/source/pyext.cpp +++ b/externals/grill/py/source/pyext.cpp @@ -41,6 +41,8 @@ void pyext::Setup(t_classid c) FLEXT_CADDMETHOD_(c,0,"get",m_get); FLEXT_CADDMETHOD_(c,0,"set",m_set); + FLEXT_CADDMETHOD_(c,0,"edit",CbClick); + FLEXT_CADDATTR_VAR1(c,"py",pymsg); FLEXT_CADDATTR_VAR1(c,"respond",respond); @@ -99,7 +101,7 @@ void pyext::SetThis() { // remember the this pointer PyObject *th = PyLong_FromVoidPtr(this); - /*int ret =*/ PyObject_SetAttrString(pyobj,"_this",th); // ref is taken + PyObject_SetAttrString(pyobj,"_this",th); // ref is taken } void pyext::ClearThis() |