Use a constructor to make widgets.