Probably to Michael or Pavel:
In my experimental screen (gscreen) I have a HAL pin that I want to call
a function when it changes.
I know gladeVCP uses Gobject to call functions (methods?).
Gscreen uses most of the framework of gladeVCP.
Is there a way to leverage gladevcp ( eg hal_widgets) to be able to register
my own HAL pins and call my own functions?
In this case the HAL pin will be used to show a (non GLADE defined) message
dialog,
but the technique could be useful for other stuff.
def _hal_init(self):
_HalWidgetBase._hal_init(self)
self.hal_pin = self.hal.newpin(self.hal_name, hal.HAL_FLOAT, hal.HAL_IN)
self.hal_pin.connect('value-changed', lambda p: self.set_value(p.value))
self.hal_pin.connect('value-changed', lambda s:
self.emit('hal-pin-changed', s))
I assume I must put code similar to this in gscreen.
Any pointers ?
I just don't have quite enough understanding how you guys get this to work
or how to adapt it to what I want.
On a related question is it possible/desirable to have halmodule to register
gobject
signals when it makes/updates HAL pins so any program could tap into this
technique?
Thanks Chris M
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers