[fxruby-users] updata of a value from outside

Lyle Johnson lyle at lylejohnson.name
Sun Jun 14 04:38:58 EDT 2009

On Jun 13, 2009, at 4:23 PM, jabowen wrote:

> I have a button in the test gui that runs a random number generator  
> class
> outside of the gui.  How do I get the field to update inside the  
> gui?  It
> creates the number but and puts it but does not update the field.

You need to be sure to update the value of the data target. Try  
changing your button action to this:

	activate_button.connect(SEL_COMMAND) do
		@intTarget.value = $current_addr

Hope this helps,


More information about the fxruby-users mailing list