Oh, you can also create a reference variable when you first create the widgets, that will let you directly access the variables.
Then just call into wherever you are storing this ref, from your widget, to modify the other.