Helper function to create an WidgetActionGroup and attach it to widget using the group name group_name.
widget
group_name
A Widget
the group name to use for the action group