fsleyes_widgets.utils.webpage

This module provides convenience functions for opening a URL in a web browser.

The following functions are provided:

fileToUrl

Converts a file path to a URL.

openPage

Opens the given URL in the system-default web browser.

openFile

Opens the given file in the system-default web browser.

fsleyes_widgets.utils.webpage.fileToUrl(fileName)[source]

Converts a file path to a URL.

fsleyes_widgets.utils.webpage.openPage(url)[source]

Opens the given URL in the system-default web browser.

fsleyes_widgets.utils.webpage.openFile(fileName)[source]

Opens the given file in the system-default web browser.