wait_for_internet_connection

widgets.wait_for_internet_connection()

Returns when an internet connection is available.