# Use signals to communicate between GUI objects?

**URL:** <https://www.ruby-forum.com/t/use-signals-to-communicate-between-gui-objects/95190>\
**Category:** Ruby-Gnome 2\
**Created:** [May 24, 2006, 9:06am UTC](https://www.ruby-forum.com/t/use-signals-to-communicate-between-gui-objects/95190 "2006-05-24T09:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [May 24, 2006, 9:06am UTC](https://www.ruby-forum.com/t/use-signals-to-communicate-between-gui-objects/95190/1 "2006-05-24T09:06:07Z")

</div>

Say when a user selects a radio box in one part of the GUI, a couple  
other parts of the GUI should change.

Should I use a gtk (glib, I think) signal for this? Or function calls  
between the different objects?

I’m trying to set this up for easy unit testing, by the way. I could  
use the Observer pattern, but when one part of the GUI needs to react  
to a few different ‘events’, I think using one update() function  
becomes difficult.

Hope that made sense…

Joe
