This method allows you to tie a particular widget to an action object. Using this method will result in synchronisation of all the properties of the action with the widget (such as label, icon, tooltip etc.) It will also attach a callback so that the action gets activated when the proxy widget does.
See also: disconnect_proxy()