Share

PyMediaHubTab

Base object for manipulating tabs in the MediaHub module. This class provides common functionality for navigating and managing different types of MediaHub tabs, such as Files or Archives browser interfaces.



PyMediaHubTab Methods

Command Description
get_path Retrieve the current file system path or location of the tab.
set_path Set the current path of the tab. Returns True if successful.


Examples

Set/Get the path of the Files tab

Print and change the current path of the Files tab of the MediaHub module.

import flame
print("Current path is %s" % flame.mediahub.files.get_path())
flame.mediahub.files.set_path("/Volumes/External Storage/")

Set/Get the path of the Archives tab

Print and change the current path of the Archives tab of the MediaHub module.

import flame
print("Current path is %s" % flame.mediahub.archives.get_path())
flame.mediahub.archives.set_path("/Volumes/External Storage/")

Was this information helpful?