From 15b2643791d8b6efe6075bba78acea812f368ff0 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 1 Aug 2005 11:58:01 +0000 Subject: 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 --- externals/grill/py/source/pyext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'externals/grill/py/source/pyext.cpp') 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() -- cgit v1.2.1