firsttimeform

This module contains the first time wizard.

class openlp.core.ui.firsttimeform.FirstTimeForm(parent=None)[source]

Bases: PyQt5.QtWidgets.QWizard, openlp.core.ui.firsttimewizard.UiFirstTimeWizard, openlp.core.common.registryproperties.RegistryProperties

This is the Theme Import Wizard, which allows easy creation and editing of OpenLP themes.

exec()[source]

Run the wizard.

get_next_page_id()[source]

Returns the id of the next FirstTimePage to go to based on enabled plugins

initialize(screens)[source]

Set up the First Time Wizard

Parameters:screens – The screens detected by OpenLP
nextId()[source]

Determine the next page in the Wizard to go to.

on_cancel_button_clicked()[source]

Process the triggering of the cancel button.

on_current_id_changed(page_id)[source]

Detects Page changes and updates as appropriate.

on_no_internet_cancel_button_clicked()[source]

Process the triggering of the “Cancel” button on the No Internet page.

on_no_internet_finish_button_clicked()[source]

Process the triggering of the “Finish” button on the No Internet page.

on_screenshot_downloaded(title, filename, sha256)[source]

Add an item to the list when a theme has been downloaded

Parameters:
  • title – The title of the theme
  • filename – The filename of the theme
set_defaults()[source]

Set up display at start of theme edit.

update_screen_list_combo()[source]

The user changed screen resolution or enabled/disabled more screens, so we need to update the combo box.

class openlp.core.ui.firsttimeform.ThemeScreenshotWorker(themes_url, title, filename, sha256, screenshot)[source]

Bases: PyQt5.QtCore.QObject

This thread downloads a theme’s screenshot

finished
run()[source]

Overridden method to run the thread.

screenshot_downloaded
set_download_canceled(toggle)[source]

Externally set if the download was canceled

Parameters:toggle – Set if the download was canceled or not