The subject line describes what I want to do.
I want to be able to call methods created within the GRC-created code
from my own imported functions.
For example, if the GRC created flowgraph created a method called
set_foonly(), I’d like to be able to
call set_foonly() from within my own imported code. But if I try to
pass “self”, GRC complains that it
isn’t defined (which is true–“self” doesn’t exist until runtime).
Any clueage?
–
Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
what you can do is pass a string representing the name of your variable;
the block wrapper template can expand that to self.set_$(var), but you
will never get grc to reference the methods of blocks and classes at
edit time.
-Josh
On 06/25/2010 02:07 PM, Josh B. wrote:
what you can do is pass a string representing the name of your
variable; the block wrapper template can expand that to
self.set_$(var), but you will never get grc to reference the methods
of blocks and classes at edit time.
-Josh
So, I have to define my own GRC block then. Hmmm.
–
Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium