playertab

The playertab module holds the configuration tab for the media stuff.

class openlp.core.ui.media.playertab.MediaQCheckBox[source]

Bases: PyQt5.QtWidgets.QCheckBox

MediaQCheckBox adds an extra property, player_name to the QCheckBox class.

set_player_name(name)[source]

Set the player name

class openlp.core.ui.media.playertab.PlayerTab(parent)[source]

Bases: openlp.core.lib.settingstab.SettingsTab

MediaTab is the Media settings tab in the settings dialog.

load()[source]

Load the settings

on_background_color_changed(color)[source]

Set the background color

Parameters:color – The color to be set.
on_down_button_clicked()[source]

Move a media player down in the order

on_player_check_box_changed(check_state)[source]

Add or remove players depending on their status

Parameters:check_state – The requested status.
on_up_button_clicked()[source]

Move a media player up in the order

post_set_up(post_update=False)[source]

Late setup for players as the MediaController has to be initialised first.

Parameters:post_update – Indicates if called before or after updates.
retranslateUi()[source]

Translate the UI on the fly

retranslate_players()[source]

Translations for players is dependent on their setup as well

save()[source]

Save the settings

setupUi()[source]

Set up the UI

update_player_list()[source]

Update the list of media players